12 Star 0 Fork 6

src-openEuler/cli11

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cli11-gtest.patch 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
gaochong 提交于 2021-10-08 13:50 . init cli11
--- cmake/AddGoogletest.cmake.orig 2019-05-20 06:23:11.000000000 -0600
+++ cmake/AddGoogletest.cmake 2019-06-08 16:14:13.714272321 -0600
@@ -11,8 +11,6 @@ if (MSYS)
set(gtest_disable_pthreads ON CACHE BOOL "" FORCE)
endif()
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE BOOL "")
-add_subdirectory("${CLI11_SOURCE_DIR}/extern/googletest" "${CLI11_BINARY_DIR}/extern/googletest" EXCLUDE_FROM_ALL)
-
if(GOOGLE_TEST_INDIVIDUAL)
if(NOT CMAKE_VERSION VERSION_LESS 3.9)
@@ -56,16 +54,6 @@ BUILD_GMOCK
BUILD_GTEST
)
-set_target_properties(gtest gtest_main gmock gmock_main
- PROPERTIES FOLDER "Extern")
-
-foreach(TGT IN ITEMS gtest gtest_main gmock gmock_main)
- get_property(DIR_LIST TARGET ${TGT} PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
- foreach(ITEM IN LISTS DIR_LIST)
- set_property(TARGET ${TGT} APPEND PROPERTY INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${ITEM}")
- endforeach()
-endforeach()
-
if(MSVC)
if (MSVC_VERSION GREATER_EQUAL 1900)
target_compile_definitions(gtest PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
--- tests/CMakeLists.txt.orig 2019-05-20 06:23:11.000000000 -0600
+++ tests/CMakeLists.txt 2019-06-08 16:06:45.635074659 -0600
@@ -1,8 +1,3 @@
-if(NOT EXISTS "${CLI11_SOURCE_DIR}/extern/googletest/CMakeLists.txt")
- message(FATAL_ERROR "You have requested tests be built, but googletest is not downloaded. Please run:
- git submodule update --init")
-endif()
-
list(APPEND CMAKE_MODULE_PATH "${CLI11_SOURCE_DIR}/cmake")
# If submodule is available, add sanitizers
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/cli11.git
git@gitee.com:src-openeuler/cli11.git
src-openeuler
cli11
cli11
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385