Skip to content

Commit

Permalink
Add (gnu) compiler option to allow argument mismatch. (#179)
Browse files Browse the repository at this point in the history
gfortran 10.x treats argument mismatch as error
  • Loading branch information
DusanJovic-NOAA authored and fossell committed Sep 4, 2020
1 parent bacadb2 commit b660c45
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 b660c45

Please sign in to comment.