diff options
-rw-r--r-- | var/spack/repos/builtin/packages/hdf5/package.py | 5 |
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') |