From: Shengjing Zhu <zhsj@debian.org>
Date: Sat, 6 Mar 2021 17:53:25 +0800
Subject: Use system googletest

Forwarded: not-needed
Last-Update: 2022-12-10
---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 76c2b69..5f9cdcf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()
