From: Shengjing Zhu Date: Sat, 6 Mar 2021 09:53:25 +0000 (+0800) Subject: Use system googletest X-Git-Tag: archive/raspbian/1.1.6+ds1-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5f0401d8485c88407803e8a7b6074eb973a11005;p=opencc.git Use system googletest Forwarded: not-needed Last-Update: 2022-12-10 Gbp-Pq: Name 0005-Use-system-googletest.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 46b3be9..108b1ad 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()