Accepting request 1186137 from devel:microos

OBS-URL: https://build.opensuse.org/request/show/1186137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/abseil-cpp?expand=0&rev=39
This commit is contained in:
Ana Guerrero 2024-07-09 18:02:47 +00:00 committed by Git OBS Bridge
commit d5e1b15008
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 779a3565ac6c5b69dd1ab9183e500a27633117d5 Mon Sep 17 00:00:00 2001
From: Derek Mauro <dmauro@google.com>
Date: Tue, 30 Jan 2024 10:13:25 -0800
Subject: [PATCH] Avoid export of testonly target absl::test_allocator in CMake
builds
Closes #1536
PiperOrigin-RevId: 602764437
Change-Id: Ia5c20a3874262a2ddb8797f608af17d7e86dd6d6
---
absl/container/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/absl/container/CMakeLists.txt b/absl/container/CMakeLists.txt
index 449a2cad17e..ee9ca9c3c4a 100644
--- a/absl/container/CMakeLists.txt
+++ b/absl/container/CMakeLists.txt
@@ -213,6 +213,7 @@ absl_cc_library(
DEPS
absl::config
GTest::gmock
+ TESTONLY
)
absl_cc_test(

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 5 21:27:25 UTC 2024 - Christoph G <foss@grueninger.de>
- Add upstream patch abseil-cmake-gtest-testonly.patch to fix
issue with GTest and CMake 3.30
-------------------------------------------------------------------
Thu Apr 11 20:12:22 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -41,6 +41,8 @@ Patch1: cmake.patch
%else
Patch0: options-cxx17.patch
%endif
# upstream patch to prevent GTest error with CMake 3.30
Patch2: abseil-cmake-gtest-testonly.patch
%description
Abseil is a collection of C++11 libraries which augment the C++