Skip to content

Commit

Permalink
gcc-10-settable-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kgerheiser authored Aug 27, 2020
1 parent 38e43de commit 036b51d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@

if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS
"-g -traceback -free -xHOST -convert big_endian -assume byterecl")
"-g -traceback -free -xHOST -convert big_endian -assume byterecl ${CMAKE_Fortran_FLAGS}")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
set(CMAKE_Fortran_FLAGS "-g -fbacktrace -fconvert=big-endian -ffree-form")
set(CMAKE_Fortran_FLAGS "-g -fbacktrace -fconvert=big-endian -ffree-form ${CMAKE_Fortran_FLAGS}")
set(CMAKE_Fortran_RELEASE "-O2")
endif()

if(${CMAKE_Fortran_COMPILER_ID} MATCHES "^(GNU)$" AND ${CMAKE_Fortran_COMPILER_VERSION} VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -w -fallow-argument-mismatch -fallow-invalid-boz")
endif()

set(fortran_src gfsio_module.f)

set(lib_name ${PROJECT_NAME})
Expand Down

0 comments on commit 036b51d

Please sign in to comment.