projects
/
opencc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f55318
)
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>
Tue, 8 Nov 2022 15:33:54 +0000
(15:33 +0000)
Forwarded: not-needed
Last-Update: 2021-09-18
Gbp-Pq: Name 0005-Use-system-googletest.patch
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 76c2b69c539c924369897cac1cb5a10e0bc0f803..5f9cdcf64ad13b74366fe89822731cbbcb1e05d0 100644
(file)
--- 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()