summaryrefslogtreecommitdiff
path: root/dev-cpp/lucene++/files/lucene++-3.0.9-system-gtest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/lucene++/files/lucene++-3.0.9-system-gtest.patch')
-rw-r--r--dev-cpp/lucene++/files/lucene++-3.0.9-system-gtest.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-cpp/lucene++/files/lucene++-3.0.9-system-gtest.patch b/dev-cpp/lucene++/files/lucene++-3.0.9-system-gtest.patch
new file mode 100644
index 000000000000..11469a2c60fb
--- /dev/null
+++ b/dev-cpp/lucene++/files/lucene++-3.0.9-system-gtest.patch
@@ -0,0 +1,21 @@
+From: https://github.com/luceneplusplus/LucenePlusPlus/pull/218
+
+From: Gianfranco Costamagna <locutusofborg@debian.org>
+Date: Mon, 8 Sep 2025 15:05:34 +0200
+Subject: [PATCH] Find and use system googletest if available
+
+--- a/src/test/CMakeLists.txt
++++ b/src/test/CMakeLists.txt
+@@ -8,8 +8,10 @@ if(MSVC)
+ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
+ endif()
+
+-add_subdirectory(gtest)
+-
++find_package(GTest)
++if(NOT GTEST_FOUND)
++ add_subdirectory(gtest)
++endif()
+
+ ####################################
+ # src