Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
The intel debug compiler flag "-check uninit" in combination with the current ifx compiler seems to result in false positives leading to inability to successfully build a debug version. The check shall therefore be removed from this cmakelists file.
  • Loading branch information
manschub authored Jan 9, 2025
1 parent 2613e61 commit 13ff88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ elseif("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Intel")
# Reason: some dynamically allocated arrays are replicated when OpenMP is used with the neptuneClass.
# The (small) stack is used for the replication of the arrays. The flag moves arrays from the stack to the heap.
#set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -heap-arrays 32768")
set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -fpp -DDBLE -g -fno-omit-frame-pointer -traceback -check bounds -check output-conversion -check format -check pointers -check uninit -ftrapuv -assume realloc_lhs -fstack-protector -assume protect_parens")
set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -fpp -DDBLE -g -fno-omit-frame-pointer -traceback -check bounds -check output-conversion -check format -check pointers -ftrapuv -assume realloc_lhs -fstack-protector -assume protect_parens")
set (CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -O3 -fpp -DDBLE")
elseif ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Flang")
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Mpreprocess")
Expand Down Expand Up @@ -120,4 +120,4 @@ if (BUILD_DOCUMENTATION)
else (DOXYGEN_FOUND)
message("Doxygen needs to be installed to generate the source code documentation")
endif (DOXYGEN_FOUND)
endif (BUILD_DOCUMENTATION)
endif (BUILD_DOCUMENTATION)

0 comments on commit 13ff88b

Please sign in to comment.