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