From: Shengjing Zhu Date: Sat, 6 Mar 2021 09:53:25 +0000 (+0800) Subject: Use system googletest X-Git-Tag: archive/raspbian/1.1.7+ds1-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=586f644b6948473c7694828fe3537c8be1125448;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 a1210b5..ef0e088 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/gtest-1.12.1) + else() + add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL) endif() enable_testing() endif()