trilinos: make sure hdf5 is picked up from Spack

This commit is contained in:
Denis Davydov 2016-07-29 13:11:12 +02:00
parent 943896e237
commit b6ce0e6f0e

View file

@ -143,11 +143,18 @@ def install(self, spec, prefix):
'-DTrilinos_ENABLE_CXX11:BOOL=ON',
'-DTPL_ENABLE_Netcdf:BOOL=ON',
'-DTPL_ENABLE_HYPRE:BOOL=%s' % (
'ON' if '+hypre' in spec else 'OFF'),
'-DTPL_ENABLE_HDF5:BOOL=%s' % (
'ON' if '+hdf5' in spec else 'OFF'),
'ON' if '+hypre' in spec else 'OFF')
])
if '+hdf5' in spec:
options.extend([
'-DTPL_ENABLE_HDF5:BOOL=ON',
'-DHDF5_INCLUDE_DIRS:PATH=%s' % spec['hdf5'].prefix.include,
'-DHDF5_LIBRARY_DIRS:PATH=%s' % spec['hdf5'].prefix.lib
])
else:
options.extend(['-DTPL_ENABLE_HDF5:BOOL=OFF'])
if '+boost' in spec:
options.extend([
'-DTPL_ENABLE_Boost:BOOL=ON',