Skip to content

Commit 1320927

Browse files
committed
more intel options
1 parent d4cec55 commit 1320927

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/compilers.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ endif()
55
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
66
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-Wall>)
77
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
8-
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-warn>)
8+
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+
)
913
endif()

0 commit comments

Comments
 (0)