From: Shengjing Zhu Date: Sat, 6 Mar 2021 09:53:25 +0000 (+0800) Subject: Use system googletest X-Git-Tag: archive/raspbian/1.1.5+ds1-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3e9142e8f3be2364dcad0794e7e544df108ce709;p=opencc.git Use system googletest Forwarded: not-needed Last-Update: 2021-09-18 Gbp-Pq: Name 0005-Use-system-googletest.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 89d4fcf..710f162 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -204,6 +204,8 @@ add_subdirectory(test) if (ENABLE_GTEST) if(NOT USE_SYSTEM_GTEST) add_subdirectory(deps/gtest-1.11.0) + else() + add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL) endif() enable_testing() endif()