From 9d7ce4d6a0083faa7fb0d1de75e830cc06e440f0 Mon Sep 17 00:00:00 2001 From: Johannes Keller Date: Thu, 14 Nov 2024 16:30:59 +0100 Subject: [PATCH] SetBuildoptions: Add compiler options for more warnings For Fortran: `standard-semantics -no-simd -fpmodel=precise -warn all` --- cmake/SetBuildOptions.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/SetBuildOptions.cmake b/cmake/SetBuildOptions.cmake index 7416006..fb6c1d6 100644 --- a/cmake/SetBuildOptions.cmake +++ b/cmake/SetBuildOptions.cmake @@ -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.") @@ -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 " ********************************** ") \ No newline at end of file +message(STATUS " ********************************** ")