Use system googletest
authorShengjing Zhu <zhsj@debian.org>
Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)
committerBoyuan Yang <byang@debian.org>
Wed, 14 Aug 2024 18:05:52 +0000 (14:05 -0400)
Forwarded: not-needed
Last-Update: 2024-07-28

Gbp-Pq: Name 0004-Use-system-googletest.patch

CMakeLists.txt

index bdf702c3a1bf336e1b0c86278af88d4f008dc124..ba28233cab1d43d0f643d38927a53a8c3328e9a4 100644 (file)
@@ -231,6 +231,8 @@ add_subdirectory(test)
 if (ENABLE_GTEST)
   if(NOT USE_SYSTEM_GTEST)
     add_subdirectory(deps/googletest-1.15.0)
+  else()
+    add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
   endif()
   enable_testing()
 endif()