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 d4cec55 commit 1320927Copy full SHA for 1320927
cmake/compilers.cmake
@@ -5,5 +5,9 @@ endif()
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>)
+ add_compile_options(
9
+ "$<$<COMPILE_LANGUAGE:Fortran>:-warn>"
10
+ "$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-check;-traceback>"
11
+ "$<$<CONFIG:Debug>:-Rno-debug-disables-optimization>"
12
+ )
13
endif()
0 commit comments