Use system googletest
authorShengjing Zhu <zhsj@debian.org>
Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)
committerBoyuan Yang <byang@debian.org>
Fri, 1 Sep 2023 16:00:26 +0000 (17:00 +0100)
Forwarded: not-needed
Last-Update: 2022-12-10

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

CMakeLists.txt

index 46b3be97e5105ddcb1d27bc4ace9711c0f9080aa..108b1ad02fbb5d3def6b7ff4b631f4e1cbeac69e 100644 (file)
@@ -206,6 +206,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()