mirror of https://github.com/ecmwf/eccodes.git
Fortran GNU compiler errors with v10 (related to ECC-1120)
This commit is contained in:
parent
c7aa4a833a
commit
40e3ae054f
|
@ -352,6 +352,11 @@ if( CMAKE_COMPILER_IS_GNUCC )
|
||||||
ecbuild_add_c_flags("-pedantic")
|
ecbuild_add_c_flags("-pedantic")
|
||||||
endif()
|
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
|
# contents
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue