projects
/
opencc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d385f1
)
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, 6 Dec 2022 12:40:36 +0000
(12:40 +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 89d4fcf05fa8439fbc8eefd860efb69425e3d5d0..710f162cecbd824b939452f1b664abef9fe1026f 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()