Use system googletest
authorShengjing Zhu <zhsj@debian.org>
Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)
committerGunnar Hjalmarsson <gunnarhj@debian.org>
Mon, 25 Jul 2022 00:26:42 +0000 (01:26 +0100)
Forwarded: not-needed
Last-Update: 2021-09-18

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

CMakeLists.txt

index 76c2b69c539c924369897cac1cb5a10e0bc0f803..5f9cdcf64ad13b74366fe89822731cbbcb1e05d0 100644 (file)
@@ -204,6 +204,8 @@ add_subdirectory(test)
 if (ENABLE_GTEST)
   if(NOT USE_SYSTEM_GTEST)
     add_subdirectory(deps/gtest-1.11.0)
+  else()
+    add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
   endif()
   enable_testing()
 endif()