abseil-cpp: patch to avoid googletest build dependency (#45103)

This commit is contained in:
Wouter Deconinck 2024-07-15 10:09:21 -05:00 committed by GitHub
parent 22980b9e65
commit bf9b6940c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,13 @@ class AbseilCpp(CMakePackage):
version("20181200", sha256="e2b53bfb685f5d4130b84c4f3050c81bf48c497614dc85d91dbd3ed9129bce6d")
version("20180600", sha256="794d483dd9a19c43dc1fbbe284ce8956eb7f2600ef350dac4c602f9b4eb26e90")
# Avoid export of testonly target absl::test_allocator in CMake builds
patch(
"https://github.com/abseil/abseil-cpp/commit/779a3565ac6c5b69dd1ab9183e500a27633117d5.patch?full_index=1",
sha256="14ad7abbc20b10d57e00d0940e8338f69fd69f58d8285214848998e8687688cc",
when="@20240116",
)
variant("shared", default=True, description="Build shared instead of static libraries")
conflicts("+shared", when="@:20190808")