Skip to content

Commit

Permalink
correct compiler options:
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 8, 2024
1 parent 91a8d07 commit d4cec55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/compilers.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
if(NOT MSVC)
add_compile_options(-Wall)
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wall>)
endif()

if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-Wall>)
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-warn>)
endif()

0 comments on commit d4cec55

Please # to comment.