Skip to content
Snippets Groups Projects
Commit 638aa66c authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Better options for gfortran

parent e6d8e368
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
string(APPEND CMAKE_Fortran_FLAGS
" -fmax-errors=1 -pedantic -Wall -Wcharacter-truncation -Wunused-parameter"
" -Wno-conversion -Wimplicit-interface -Wimplicit-procedure"
" -Wno-integer-division")
" -Wno-integer-division -Wno-maybe-uninitialized")
# Debugging options:
set(CMAKE_Fortran_FLAGS_DEBUG "-fbacktrace -g -ffpe-trap=zero,overflow")
......@@ -15,7 +15,8 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
# Code generation options:
string(APPEND CMAKE_Fortran_FLAGS_DEBUG
" -fcheck=bounds,do,mem,pointer,recursion -finit-real=nan -O0")
" -fcheck=bounds,do,mem,pointer,recursion -finit-derived -finit-real=snan "
"-O0")
# Optimization options:
set(CMAKE_Fortran_FLAGS_RELEASE -O3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment