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

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

CMakeLists.txt

index 6db5fa187d3f7ae7f6590df247151697544db99a..fcdedeb32b90ed3737ada39d6853ce3b65598bc3 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()