File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,20 @@ include(${CMAKE_CURRENT_LIST_DIR}/f03utf8.cmake)
3131if (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 )
3737elseif (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
4445elseif (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 )
4950endif ()
You can’t perform that action at this time.
0 commit comments