summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2021-12-23 12:11:50 -0800
committerGitHub <noreply@github.com>2021-12-23 12:11:50 -0800
commit1c3881b48ab4c38e29cf166ae897a753713128fe (patch)
tree9d4e1d1147d662a5b1b72a67728699157defd5f7 /var
parent704c81eda4840114b45489d7199414706ebdde94 (diff)
downloadspack-1c3881b48ab4c38e29cf166ae897a753713128fe.tar.gz
spack-1c3881b48ab4c38e29cf166ae897a753713128fe.tar.bz2
spack-1c3881b48ab4c38e29cf166ae897a753713128fe.tar.xz
spack-1c3881b48ab4c38e29cf166ae897a753713128fe.zip
HDF5 package: change 1.10.8/1.13.0 CMake Path (#28103)
These versions change the install location of CMake files used by dependents, but most dependents don't seem to look in this new location. Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com> Co-authored-by: Chris White <white238@llnl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hdf5/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py
index 96367cb23b..04138b8108 100644
--- a/var/spack/repos/builtin/packages/hdf5/package.py
+++ b/var/spack/repos/builtin/packages/hdf5/package.py
@@ -381,6 +381,11 @@ class Hdf5(CMakePackage):
args.append(self.define('CMAKE_Fortran_COMPILER',
spec['mpi'].mpifc))
+ # work-around for https://github.com/HDFGroup/hdf5/issues/1320
+ if spec.satisfies('@1.10.8,1.13.0'):
+ args.append(self.define('HDF5_INSTALL_CMAKE_DIR',
+ 'share/cmake/hdf5'))
+
return args
@run_after('install')