Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cmake/SetBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ elseif(COMPILER STREQUAL "Intel" OR COMPILER STREQUAL "IntelLLVM")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all")
endif()
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal")
elseif(COMPILER STREQUAL "NVHPC")
add_compile_definitions(CPRNVHPC)
set(CMAKE_C_FLAGS "-fPIC")
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
set(CMAKE_C_FLAGS_RELEASE "-Ofast")
set(CMAKE_Fortran_FLAGS "-fPIC")
set(CMAKE_Fortran_FLAGS_DEBUG "-g -O0")
set(CMAKE_Fortran_FLAGS_RELEASE "-Ofast")
elseif(COMPILER STREQUAL "LFortran")
add_compile_definitions(CPRLFORTRAN)
# There is an issue, some modules require --cpp as a flag in their compilation
Expand Down Expand Up @@ -75,4 +83,4 @@ message(STATUS " ******* ${CMAKE_PROJECT_NAME} build options ******* ")
message(STATUS " Build type = '${CMAKE_BUILD_TYPE}'")
message(STATUS " Compiler = '${COMPILER}'")
message(STATUS " Coupling mode = '${COUPLING_MODE}'")
message(STATUS " ********************************** ")
message(STATUS " ********************************** ")