From 0c87983827e2c75fd33cf41f88292ead9ec0c5eb Mon Sep 17 00:00:00 2001 From: NHOrus Date: Sun, 23 Mar 2025 22:28:39 +0300 Subject: dev-cpp/string-theory: add 3.9 Fixes for CMake4, failing tests inside. Closes: https://bugs.gentoo.org/880353 Closes: https://bugs.gentoo.org/951904 Signed-off-by: NHOrus Closes: https://github.com/gentoo/gentoo/pull/41247 Signed-off-by: Sam James --- .../files/string-theory-3.9-unbundle-gtest.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dev-cpp/string-theory/files/string-theory-3.9-unbundle-gtest.patch (limited to 'dev-cpp/string-theory/files/string-theory-3.9-unbundle-gtest.patch') diff --git a/dev-cpp/string-theory/files/string-theory-3.9-unbundle-gtest.patch b/dev-cpp/string-theory/files/string-theory-3.9-unbundle-gtest.patch new file mode 100644 index 000000000000..3ebb410b224e --- /dev/null +++ b/dev-cpp/string-theory/files/string-theory-3.9-unbundle-gtest.patch @@ -0,0 +1,18 @@ +Use system GTest instead of fetching it +https://bugs.gentoo.org/880353 +--- a/test/CMakeLists.txt 2025-03-23 22:20:35.060895402 +0300 ++++ b/test/CMakeLists.txt 2025-03-23 22:22:29.964436254 +0300 +@@ -33,12 +33,7 @@ + set(BUILD_GMOCK OFF CACHE INTERNAL "Override gtest default" FORCE) + set(INSTALL_GTEST OFF CACHE INTERNAL "Override gtest default" FORCE) + +-include(FetchContent) +-FetchContent_Declare(gtest +- GIT_REPOSITORY https://github.com/google/googletest.git +- GIT_TAG v1.15.2 +-) +-FetchContent_MakeAvailable(gtest) ++find_package(GTest REQUIRED) + + add_executable(st_gtests "") + target_link_libraries(st_gtests PRIVATE gtest gtest_main string_theory) -- cgit v1.2.3