hdf5: add a map variant (#35523)
* hdf5: add map variant * hdf5: add mininum version for map variant * hdf5: fix black error
This commit is contained in:
parent
951f691d1b
commit
fbde853360
1 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,7 @@ class Hdf5(CMakePackage):
|
||||||
|
|
||||||
variant("hl", default=False, description="Enable the high-level library")
|
variant("hl", default=False, description="Enable the high-level library")
|
||||||
variant("cxx", default=False, description="Enable C++ support")
|
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("fortran", default=False, description="Enable Fortran support")
|
||||||
variant("java", when="@1.10:", default=False, description="Enable Java support")
|
variant("java", when="@1.10:", default=False, description="Enable Java support")
|
||||||
variant("threadsafe", default=False, description="Enable thread-safe capabilities")
|
variant("threadsafe", default=False, description="Enable thread-safe capabilities")
|
||||||
|
@ -560,6 +561,7 @@ def cmake_args(self):
|
||||||
# are enabled but the tests are disabled.
|
# are enabled but the tests are disabled.
|
||||||
spec.satisfies("@1.8.22+shared+tools"),
|
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("HDF5_ENABLE_Z_LIB_SUPPORT", True),
|
||||||
self.define_from_variant("HDF5_ENABLE_SZIP_SUPPORT", "szip"),
|
self.define_from_variant("HDF5_ENABLE_SZIP_SUPPORT", "szip"),
|
||||||
self.define_from_variant("HDF5_ENABLE_SZIP_ENCODING", "szip"),
|
self.define_from_variant("HDF5_ENABLE_SZIP_ENCODING", "szip"),
|
||||||
|
|
Loading…
Reference in a new issue