From: Shengjing Zhu Date: Sun, 28 Jul 2024 23:44:27 +0000 (-0400) Subject: Use system googletest X-Git-Tag: archive/raspbian/1.1.8+ds1-3+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0dd97330f25b03de47708cdbf76c3096bbb813a5;p=opencc.git Use system googletest Forwarded: not-needed Last-Update: 2024-07-28 Gbp-Pq: Name 0004-Use-system-googletest.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6db5fa1..fcdedeb 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()