Skip to content

Commit

Permalink
SetBuildoptions: Add compiler options for more warnings
Browse files Browse the repository at this point in the history
For Fortran:

`standard-semantics -no-simd -fpmodel=precise -warn all`
  • Loading branch information
jjokella committed Nov 14, 2024
1 parent c9f3348 commit 9d7ce4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/SetBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ elseif(COMPILER STREQUAL "Intel" OR COMPILER STREQUAL "IntelLLVM")
set(CMAKE_C_FLAGS_DEBUG "-O0 -g")
set(CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal")
set(CMAKE_Fortran_FLAGS "-free -qno-opt-dynamic-align -ftz -traceback -convert big_endian -assume byterecl -assume realloc_lhs -fp-model source -qopenmp")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all -standard-semantics -no-simd -fpmodel=precise -warn all")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal")
else()
message(FATAL_ERROR "COMPILER='${COMPILER}' is not supported.")
Expand All @@ -62,4 +62,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 " ********************************** ")

0 comments on commit 9d7ce4d

Please sign in to comment.