hdf5: Add conflict for older cmake versions. (#37463)

See HDFGroup/hdf5 issue 2906
This commit is contained in:
Mittagskogel 2023-05-06 00:19:39 +02:00 committed by GitHub
parent 7cf45442a7
commit 4403df4f08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,6 +238,10 @@ class Hdf5(CMakePackage):
conflicts("+fortran", when="+shared@:1.8.15")
# See https://github.com/spack/spack/issues/31085
conflicts("+fortran+mpi", when="@1.8.22")
# See https://github.com/HDFGroup/hdf5/issues/2906#issue-1697749645
conflicts(
"+fortran", when="@1.13.3:^cmake@:3.22", msg="cmake_minimum_required is not set correctly."
)
# There are several officially unsupported combinations of the features:
# 1. Thread safety is not guaranteed via high-level C-API but in some cases