cleverleaf: Intel compiler fails compilation without c++11 flag (#8550) (#8598)

This commit is contained in:
twang15 2018-07-05 19:54:05 -07:00 committed by Adam J. Stewart
parent 7fa3e7a9aa
commit 4b15391dab

View File

@ -44,3 +44,9 @@ class Cleverleaf(CMakePackage):
depends_on('hdf5+mpi')
depends_on('boost')
depends_on('cmake@3.1:', type='build')
def flag_handler(self, name, flags):
if self.spec.satisfies('%intel') and name in ['cppflags', 'cxxflags']:
flags.append(self.compiler.cxx11_flag)
return (None, None, flags)