From: Shengjing Zhu Date: Sat, 6 Mar 2021 09:53:25 +0000 (+0800) Subject: Use system googletest X-Git-Tag: archive/raspbian/1.1.4+ds1-4+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=df0c625d61113d2d4b99719a7c07116af35b3bfc;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 76c2b69..5f9cdcf 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()