hdf5: Make +subfiling variant depend on +mpi (#42324)

Based on CMakeLists.txt, the subfiling VFD requires a parallel HDF5 build.
So make +subfiling variant depend on +mpi

Should resolve #42323
This commit is contained in:
Tom Payerle 2024-01-29 03:41:51 -05:00 committed by GitHub
parent 0b23bbbbb0
commit 6474d7ef00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,9 @@ 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("subfiling", when="@1.14:", default=False, description="Enable Subfiling VFD support")
variant(
"subfiling", when="@1.14: +mpi", default=False, description="Enable Subfiling VFD 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")