This commit is contained in:
Denis Davydov 2016-03-23 09:11:26 +01:00
parent 7e4e2c988a
commit 50e4b609c6

View file

@ -52,6 +52,7 @@ def install(self, spec, prefix):
mpi_bin = spec['mpi'].prefix.bin mpi_bin = spec['mpi'].prefix.bin
options.extend(['-DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON', options.extend(['-DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON',
'-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON', '-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON',
'-DTrilinos_VERBOSE_CONFIGURE:BOOL=OFF',
'-DTrilinos_ENABLE_TESTS:BOOL=OFF', '-DTrilinos_ENABLE_TESTS:BOOL=OFF',
'-DTrilinos_ENABLE_EXAMPLES:BOOL=OFF', '-DTrilinos_ENABLE_EXAMPLES:BOOL=OFF',
'-DCMAKE_BUILD_TYPE:STRING=%s' % ('Debug' if '+debug' in spec else 'Release'), '-DCMAKE_BUILD_TYPE:STRING=%s' % ('Debug' if '+debug' in spec else 'Release'),
@ -145,7 +146,9 @@ def install(self, spec, prefix):
]) ])
if self.compiler.name == "clang": if self.compiler.name == "clang":
os.environ['CPPFLAGS']="-Qunused-arguments" options.extend([
'-DCMAKE_EXE_LINKER_FLAGS:STRING=-Qunused-arguments'
])
with working_dir('spack-build', create=True): with working_dir('spack-build', create=True):
cmake('..', *options) cmake('..', *options)