netcdf-c: fix self-referential dependencies (#42528)

This commit is contained in:
Massimiliano Culpo 2024-02-07 08:22:56 +01:00 committed by GitHub
parent 5c86a3cca2
commit bdae9f776b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -244,7 +244,7 @@ class NetcdfC(CMakePackage, AutotoolsPackage):
# later is required for netCDF-4 compression. However, zlib became a direct dependency only # later is required for netCDF-4 compression. However, zlib became a direct dependency only
# starting NetCDF 4.9.0 (for the deflate plugin): # starting NetCDF 4.9.0 (for the deflate plugin):
depends_on("zlib-api", when="@4.9.0:+shared") depends_on("zlib-api", when="@4.9.0:+shared")
depends_on("zlib@1.2.5:", when="^zlib") depends_on("zlib@1.2.5:", when="^[virtuals=zlib-api] zlib")
# Use the vendored bzip2 on Windows: # Use the vendored bzip2 on Windows:
for __p in ["darwin", "cray", "linux"]: for __p in ["darwin", "cray", "linux"]: