We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d48e9f commit f5154b2Copy full SHA for f5154b2
cmake/compilers.cmake
@@ -17,6 +17,10 @@ endif()
17
18
# --- compiler options
19
20
+if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
21
+ add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:-Wall;-Wextra>")
22
+endif()
23
+
24
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
25
add_compile_options(-Wall -Wextra
26
"$<$<COMPILE_LANGUAGE:Fortran>:-fimplicit-none>"
@@ -25,7 +29,6 @@ add_compile_options(-Wall -Wextra
29
)
30
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
27
31
add_compile_options(
28
-$<IF:$<BOOL:${WIN32}>,/QxHost,-xHost>
32
"$<$<COMPILE_LANGUAGE:Fortran>:-warn>"
33
"$<$<COMPILE_LANGUAGE:C,CXX>:-Wall>"
34
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-traceback;-check;-debug>"
0 commit comments