From: Shengjing Zhu Date: Sun, 28 Jul 2024 19:44:27 -0400 Subject: Use system googletest Forwarded: not-needed Last-Update: 2024-07-28 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) Index: opencc/CMakeLists.txt =================================================================== --- opencc.orig/CMakeLists.txt +++ opencc/CMakeLists.txt @@ -404,6 +404,8 @@ if (ENABLE_GTEST) endif() 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()