From 2fa1c9504591ce744c4cc22148a3b439604bae98 Mon Sep 17 00:00:00 2001 From: Shengjing Zhu Date: Sun, 28 Jul 2024 19:44:27 -0400 Subject: [PATCH] Use system googletest Forwarded: not-needed Last-Update: 2024-07-28 Gbp-Pq: Name 0004-Use-system-googletest.patch --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdf702c..ba28233 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,6 +231,8 @@ add_subdirectory(test) if (ENABLE_GTEST) if(NOT USE_SYSTEM_GTEST) add_subdirectory(deps/googletest-1.15.0) + else() + add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL) endif() enable_testing() endif() -- 2.30.2