File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ endif()
17
17
18
18
# --- compiler options
19
19
20
- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
20
+ if (CMAKE_CXX_COMPILER_ID MATCHES "( Clang|Intel) " )
21
21
add_compile_options ("$<$<COMPILE_LANGUAGE:C,CXX>:-Wall;-Wextra>" )
22
+ elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
23
+ add_compile_options ("$<$<COMPILE_LANGUAGE:C,CXX>:/W3>" )
22
24
endif ()
23
25
24
26
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU )
@@ -30,7 +32,6 @@ add_compile_options(-Wall -Wextra
30
32
elseif (CMAKE_Fortran_COMPILER_ID MATCHES "^Intel" )
31
33
add_compile_options (
32
34
"$<$<COMPILE_LANGUAGE:Fortran>:-warn>"
33
- "$<$<COMPILE_LANGUAGE:C,CXX>:-Wall;-Wextra>"
34
35
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-traceback;-check;-debug>"
35
36
)
36
37
endif ()
You can’t perform that action at this time.
0 commit comments