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 91a8d07 commit d4cec55Copy full SHA for d4cec55
cmake/compilers.cmake
@@ -1,3 +1,9 @@
1
if(NOT MSVC)
2
- add_compile_options(-Wall)
+ add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wall>)
3
+endif()
4
+
5
+if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
6
+ add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-Wall>)
7
+elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
8
+ add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-warn>)
9
endif()
0 commit comments