IAP GITLAB

Commit 606f06e6 authored by Andrii Tykhonov's avatar Andrii Tykhonov

Patch from Nicola Mori: Fix build with GCC 10

parent 268091f1
......@@ -54,6 +54,15 @@ FOREACH(lang C CXX Fortran)
ENDIF()
ENDFOREACH()
# Patch from Nicola Mori: Fix build with GCC 10.
# Add a Fortran flag to demote argument mismatch to warning since it hasbeen
# been promoted to error in GCC 10 (see https://gcc.gnu.org/gcc-10/changes.html).
#
# Add flag for compilation with gfortran >= 10
IF(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND ${CMAKE_Fortran_COMPILER_VERSION} VERSION_GREATER 10)
SET (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
ENDIF()
## RPATH (where to find library)
# use, i.e. don't skip the full RPATH for the build tree
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment