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()
1717
1818# --- compiler options
1919
20- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
20+ if (CMAKE_CXX_COMPILER_ID MATCHES "( Clang|Intel) " )
2121 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>" )
2224endif ()
2325
2426if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
@@ -30,7 +32,6 @@ add_compile_options(-Wall -Wextra
3032elseif (CMAKE_Fortran_COMPILER_ID MATCHES "^Intel" )
3133add_compile_options (
3234"$<$<COMPILE_LANGUAGE:Fortran>:-warn>"
33- "$<$<COMPILE_LANGUAGE:C,CXX>:-Wall;-Wextra>"
3435"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-traceback;-check;-debug>"
3536)
3637endif ()
You can’t perform that action at this time.
0 commit comments