diff --git a/cmake/FortranCompilerConfig.cmake b/cmake/FortranCompilerConfig.cmake index feb7abc20..5003ca2cc 100644 --- a/cmake/FortranCompilerConfig.cmake +++ b/cmake/FortranCompilerConfig.cmake @@ -26,7 +26,7 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES GNU) # this is gfortran SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch") ENDIF() SET(CMAKE_Fortran_FLAGS_TESTING "-O2 -funroll-loops") - SET(CMAKE_Fortran_FLAGS_DEBUG "-O0 -p -g -fbacktrace -fwhole-file -fcheck=all -fbounds-check -fsanitize=address -fdebug-aux-vars -Wall -Waliasing -Wsurprising -Wampersand -Warray-bounds -Wc-binding-type -Wcharacter-truncation -Wconversion -Wdo-subscript -Wfunction-elimination -Wimplicit-interface -Wimplicit-procedure -Wintrinsic-shadow -Wintrinsics-std -Wno-align-commons -Wno-overwrite-recursive -Wno-tabs -Wreal-q-constant -Wunderflow -Wunused-parameter -Wrealloc-lhs -Wrealloc-lhs-all -Wfrontend-loop-interchange -Wtarget-lifetime") + SET(CMAKE_Fortran_FLAGS_DEBUG "-O0 -p -g -fbacktrace -fwhole-file -fcheck=all -fbounds-check -fsanitize=address -Wall -Waliasing -Wsurprising -Wampersand -Warray-bounds -Wc-binding-type -Wcharacter-truncation -Wconversion -Wdo-subscript -Wfunction-elimination -Wimplicit-interface -Wimplicit-procedure -Wintrinsic-shadow -Wintrinsics-std -Wno-align-commons -Wno-overwrite-recursive -Wno-tabs -Wreal-q-constant -Wunderflow -Wunused-parameter -Wrealloc-lhs -Wrealloc-lhs-all -Wfrontend-loop-interchange -Wtarget-lifetime") # -fdebug-aux-vars (removed cause not recognized by GNU 8.3.0) SET(CMAKE_Fortran_FLAGS_RELEASE "-O3 -funroll-loops") elseif(CMAKE_Fortran_COMPILER_ID MATCHES Intel) SET(CMAKE_Fortran_MODDIR_FLAG "-module ") #remember the ending white space here