Skip to content

Commit 787d8cc

Browse files
committed
no backtrace releae
1 parent 971bb98 commit 787d8cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmake/compilers.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,20 @@ include(${CMAKE_CURRENT_LIST_DIR}/f03utf8.cmake)
3131
if(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
3232
add_compile_options(
3333
$<IF:$<BOOL:${WIN32}>,/QxHost,-xHost>
34-
"$<$<COMPILE_LANGUAGE:Fortran>:-traceback;-heap-arrays>"
35-
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug>>:-warn;-debug;-check>"
34+
$<$<COMPILE_LANGUAGE:Fortran>:-traceback;-heap-arrays>
35+
$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug>>:-warn;-debug;-check>
3636
)
3737
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
3838

3939
add_compile_options(-mtune=native -Wall
4040
"$<$<COMPILE_LANGUAGE:Fortran>:-fimplicit-none;-Werror=array-bounds;-fcheck=all>"
41+
$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Release>>:-fno-backtrace>
4142
)
4243

4344
# "$<$<COMPILE_LANGAUGE:Fortran>:-Wrealloc-lhs>" # not -Wrealloc-lhs-all which warns on character
4445
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL NAG)
4546
# https://www.nag.co.uk/nagware/np/r70_doc/manual/compiler_2_4.html#OPTIONS
4647
add_compile_options(
47-
"$<$<COMPILE_LANGUAGE:Fortran>:-f2018;-C;-colour;-gline;-nan;-info;-u>"
48+
$<$<COMPILE_LANGUAGE:Fortran>:-f2018;-C;-colour;-gline;-nan;-info;-u>
4849
)
4950
endif()

0 commit comments

Comments
 (0)