Use system googletest
authorShengjing Zhu <zhsj@debian.org>
Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)
committerGunnar Hjalmarsson <gunnarhj@debian.org>
Sat, 21 Oct 2023 19:22:49 +0000 (20:22 +0100)
Forwarded: not-needed
Last-Update: 2022-12-10

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

CMakeLists.txt

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