Skip to content

Commit 88c75bb

Browse files
committed
SetBuildOptions: remove Intel-Debug-Flag - check all for PDAF
PDAF does not pass all the check, leading to runtime errors.
1 parent 5447dc1 commit 88c75bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/SetBuildOptions.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ elseif(COMPILER STREQUAL "Intel" OR COMPILER STREQUAL "IntelLLVM")
3535
set(CMAKE_C_FLAGS_DEBUG "-O0 -g")
3636
set(CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal")
3737
set(CMAKE_Fortran_FLAGS "-free -qno-opt-dynamic-align -ftz -traceback -convert big_endian -assume byterecl -assume realloc_lhs -fp-model source -qopenmp")
38-
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0") #-check all
38+
if(USE_PDAF)
39+
# PDAF does not pass all checks from "-check all"
40+
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0") #-check all
41+
else()
42+
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all")
43+
endif()
3944
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal")
4045
else()
4146
message(FATAL_ERROR "COMPILER='${COMPILER}' is not supported.")

0 commit comments

Comments
 (0)