h5z-zfp: fix build when ^hdf5+mpi (#29733)
This commit is contained in:
parent
bb9ac2be9c
commit
073330e893
@ -23,6 +23,7 @@ class H5zZfp(MakefilePackage):
|
|||||||
|
|
||||||
depends_on('hdf5+fortran', when='+fortran')
|
depends_on('hdf5+fortran', when='+fortran')
|
||||||
depends_on('hdf5', when='~fortran')
|
depends_on('hdf5', when='~fortran')
|
||||||
|
depends_on('mpi', when='^hdf5+mpi')
|
||||||
depends_on('zfp bsws=8')
|
depends_on('zfp bsws=8')
|
||||||
|
|
||||||
patch('https://github.com/LLNL/H5Z-ZFP/commit/983a1870cefff5fdb643898a14eda855c2c231e4.patch?full_index=1',
|
patch('https://github.com/LLNL/H5Z-ZFP/commit/983a1870cefff5fdb643898a14eda855c2c231e4.patch?full_index=1',
|
||||||
@ -34,14 +35,19 @@ class H5zZfp(MakefilePackage):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def make_defs(self):
|
def make_defs(self):
|
||||||
|
cc = spack_cc
|
||||||
|
fc = spack_fc
|
||||||
|
if '^hdf5+mpi' in self.spec:
|
||||||
|
cc = self.spec['mpi'].mpicc
|
||||||
|
fc = self.spec['mpi'].mpifc
|
||||||
make_defs = [
|
make_defs = [
|
||||||
'PREFIX=%s' % prefix,
|
'PREFIX=%s' % prefix,
|
||||||
'CC=%s' % spack_cc,
|
'CC=%s' % cc,
|
||||||
'HDF5_HOME=%s' % self.spec['hdf5'].prefix,
|
'HDF5_HOME=%s' % self.spec['hdf5'].prefix,
|
||||||
'ZFP_HOME=%s' % self.spec['zfp'].prefix]
|
'ZFP_HOME=%s' % self.spec['zfp'].prefix]
|
||||||
|
|
||||||
if '+fortran' in self.spec and spack_fc:
|
if '+fortran' in self.spec and fc:
|
||||||
make_defs += ['FC=%s' % spack_fc]
|
make_defs += ['FC=%s' % fc]
|
||||||
else:
|
else:
|
||||||
make_defs += ['FC=']
|
make_defs += ['FC=']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user