add fix for implicit includes with newer vers of gcc (#31056)

This commit is contained in:
Cyrus Harrison 2022-06-09 09:40:08 -07:00 committed by GitHub
parent 4a8db00691
commit 1ada7ea809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,11 @@ class Fides(CMakePackage):
depends_on('adios2~zfp', when='+adios2')
depends_on("vtk-m", when="+vtk-m")
# Fix missing implicit includes
@when('%gcc@7:')
def setup_build_environment(self, env):
env.append_flags('CXXFLAGS', '-include limits -include numeric')
def cmake_args(self):
spec = self.spec
options = [