diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2023-09-25 09:45:56 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2023-09-25 09:45:56 -0700 |
commit | 4af59a28125a5a79949ca24e08430230e3eb38b8 (patch) | |
tree | 0f543eed3ff039df14c734310f90323c5f908098 /dev-cpp/yaml-cpp/files | |
parent | app-misc/tmuxp: add 1.31.0 (diff) | |
download | gentoo-4af59a28125a5a79949ca24e08430230e3eb38b8.tar.gz gentoo-4af59a28125a5a79949ca24e08430230e3eb38b8.tar.bz2 gentoo-4af59a28125a5a79949ca24e08430230e3eb38b8.zip |
dev-cpp/yaml-cpp: add 0.8.0
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-cpp/yaml-cpp/files')
-rw-r--r-- | dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch new file mode 100644 index 000000000000..5386f8ec7c2f --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-gtest.patch @@ -0,0 +1,30 @@ +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index c9e7f04..58973ea 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -1,15 +1,10 @@ + find_package(Threads REQUIRED) ++find_package(GTest REQUIRED CONFIG) + + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + set(BUILD_MOCK ON CACHE BOOL "" FORCE) + set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + +-add_subdirectory( +- "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.11.0" +- "${CMAKE_CURRENT_BINARY_DIR}/prefix") +- +-include_directories(SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.11.0/googletest/include") +- + set(test-new-api-pattern "new-api/*.cpp") + set(test-source-pattern "*.cpp" "integration/*.cpp" "node/*.cpp") + if (CMAKE_VERSION VERSION_GREATER 3.11) +@@ -38,7 +33,7 @@ target_link_libraries(yaml-cpp-tests + PRIVATE + Threads::Threads + yaml-cpp +- gmock) ++ GTest::gmock) + + set_property(TARGET yaml-cpp-tests PROPERTY CXX_STANDARD_REQUIRED ON) + if (NOT DEFINED CMAKE_CXX_STANDARD) |