projects
/
opencc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca4047d
)
Use system googletest
author
Shengjing Zhu
<zhsj@debian.org>
Sat, 6 Mar 2021 09:53:25 +0000
(17:53 +0800)
committer
Gunnar Hjalmarsson
<gunnarhj@debian.org>
Sat, 21 Oct 2023 19:22:49 +0000
(20:22 +0100)
Forwarded: not-needed
Last-Update: 2022-12-10
Gbp-Pq: Name 0005-Use-system-googletest.patch
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index a1210b581093ca81e62139cf7c3b456d4b1529e2..ef0e08824fcef83749190e1a08eb2e6668bcf310 100644
(file)
--- 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()