trilinos: make sure hdf5 is picked up from Spack
This commit is contained in:
parent
943896e237
commit
b6ce0e6f0e
1 changed files with 10 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue