adios2: Fix build with gcc@10: (#16570)

This commit is contained in:
Michael Kuhn 2020-05-14 04:46:13 +02:00 committed by GitHub
parent 48a35409e0
commit 20b3e41831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,6 +118,11 @@ class Adios2(CMakePackage):
# See https://github.com/ornladios/ADIOS2/pull/1899 # See https://github.com/ornladios/ADIOS2/pull/1899
patch('2.5-fix-clear_cache.patch', when='@2.5.0') patch('2.5-fix-clear_cache.patch', when='@2.5.0')
def setup_build_environment(self, env):
# https://github.com/ornladios/ADIOS2/issues/2228
if self.spec.satisfies('%gcc@10: +fortran'):
env.set('FFLAGS', '-fallow-argument-mismatch')
def cmake_args(self): def cmake_args(self):
spec = self.spec spec = self.spec