projects
/
opencc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f5f025
)
Use system googletest
author
Shengjing Zhu
<zhsj@debian.org>
Sun, 28 Jul 2024 23:44:27 +0000
(19:44 -0400)
committer
Boyuan Yang
<byang@debian.org>
Mon, 29 Jul 2024 16:07:48 +0000
(12:07 -0400)
Forwarded: not-needed
Last-Update: 2024-07-28
Gbp-Pq: Name 0005-Use-system-googletest.patch
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 6db5fa187d3f7ae7f6590df247151697544db99a..fcdedeb32b90ed3737ada39d6853ce3b65598bc3 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/googletest-1.15.0)
+ else()
+ add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
endif()
enable_testing()
endif()