diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2023-03-31 09:48:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 10:48:08 -0400 |
commit | fbde8533608f8174734ea6897e850dff5d05181d (patch) | |
tree | f1cb64dfd2d7bb3617a7b575996eba4c52e3b229 | |
parent | 951f691d1bf4dadb71ca21ee05cff7102096c647 (diff) | |
download | spack-fbde8533608f8174734ea6897e850dff5d05181d.tar.gz spack-fbde8533608f8174734ea6897e850dff5d05181d.tar.bz2 spack-fbde8533608f8174734ea6897e850dff5d05181d.tar.xz spack-fbde8533608f8174734ea6897e850dff5d05181d.zip |
hdf5: add a map variant (#35523)
* hdf5: add map variant
* hdf5: add mininum version for map variant
* hdf5: fix black error
-rw-r--r-- | var/spack/repos/builtin/packages/hdf5/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py index ec8baf1d70..d507870e00 100644 --- a/var/spack/repos/builtin/packages/hdf5/package.py +++ b/var/spack/repos/builtin/packages/hdf5/package.py @@ -178,6 +178,7 @@ class Hdf5(CMakePackage): variant("hl", default=False, description="Enable the high-level library") variant("cxx", default=False, description="Enable C++ support") + variant("map", when="@1.14:", default=False, description="Enable MAP API support") variant("fortran", default=False, description="Enable Fortran support") variant("java", when="@1.10:", default=False, description="Enable Java support") variant("threadsafe", default=False, description="Enable thread-safe capabilities") @@ -560,6 +561,7 @@ class Hdf5(CMakePackage): # are enabled but the tests are disabled. spec.satisfies("@1.8.22+shared+tools"), ), + self.define_from_variant("HDF5_ENABLE_MAP_API", "map"), self.define("HDF5_ENABLE_Z_LIB_SUPPORT", True), self.define_from_variant("HDF5_ENABLE_SZIP_SUPPORT", "szip"), self.define_from_variant("HDF5_ENABLE_SZIP_ENCODING", "szip"), |