zlib-api: new virtual with zlib/zlib-ng as providers (#37372)

Introduces a new virtual zlib-api, which replaces zlib in most packages.

This allows users to switch to zlib-ng by default for better performance.
This commit is contained in:
Harmen Stoppels
2023-08-09 15:22:58 +02:00
committed by GitHub
parent f9457fa80b
commit e51748ee8f
442 changed files with 840 additions and 549 deletions

View File

@@ -152,7 +152,7 @@ class Dealii(CMakePackage, CudaPackage):
depends_on(Boost.with_default_variants)
depends_on("lapack")
depends_on("suite-sparse")
depends_on("zlib")
depends_on("zlib-api")
# Optional dependencies: Configuration
depends_on("cuda@8:", when="+cuda")
@@ -412,7 +412,7 @@ def cmake_args(self):
self.define("LAPACK_INCLUDE_DIRS", ";".join(lapack_blas_headers.directories)),
self.define("LAPACK_LIBRARIES", lapack_blas_libs.joined(";")),
self.define("UMFPACK_DIR", spec["suite-sparse"].prefix),
self.define("ZLIB_DIR", spec["zlib"].prefix),
self.define("ZLIB_DIR", spec["zlib-api"].prefix),
self.define("DEAL_II_ALLOW_BUNDLED", False),
]
)