Use system googletest
authorShengjing Zhu <zhsj@debian.org>
Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)
committerBoyuan Yang <byang@debian.org>
Mon, 20 Sep 2021 19:44:37 +0000 (20:44 +0100)
Forwarded: not-needed
Last-Update: 2021-09-18

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

CMakeLists.txt

index 094a9c7fb0c8e168000bf7ba8b987d0ca2b4758e..a9ac2f53de8b5a69f17cb1044a2a7f99fc8f4dec 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()