Skip to content

Commit

Permalink
Merge pull request #180 from fossell/release/public-v2
Browse files Browse the repository at this point in the history
Add (gnu) compiler option to allow argument mismatch. (#179)
  • Loading branch information
fossell committed Sep 4, 2020
2 parents bacadb2 + b660c45 commit 33fd887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sorc/ncep_post.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
"-g -fbacktrace -ffree-form -ffree-line-length-none -fconvert=big-endian")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check")
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
endif()
endif()

set(LIBNAME "nceppost")
Expand Down

0 comments on commit 33fd887

Please sign in to comment.