Fortran GNU compiler errors with v10 (related to ECC-1120)

This commit is contained in:
Shahram Najm 2020-08-04 13:41:40 +01:00
parent c7aa4a833a
commit 40e3ae054f
1 changed files with 5 additions and 0 deletions

View File

@ -352,6 +352,11 @@ if( CMAKE_COMPILER_IS_GNUCC )
ecbuild_add_c_flags("-pedantic")
endif()
# gfortran 10 has become stricter with argument matching
if( HAVE_FORTRAN AND CMAKE_Fortran_COMPILER_ID MATCHES "GNU" AND NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10 )
ecbuild_add_fortran_flags("-fallow-argument-mismatch")
endif()
###############################################################################
# contents