diff options
| author | Konstantin Podshumok <kpp.live+signed@gmail.com> | 2020-05-18 20:47:20 +0300 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2020-06-08 19:56:01 +0200 |
| commit | fca729a33472e3af4d8d54acedfe6a7da3f70640 (patch) | |
| tree | 826f50ba3f3b547988ab9fc73697af001e850c18 /net-libs/cppzmq/files/cppzmq-use-system-catch2.patch | |
| parent | ded871264d0254a5f7e38045f10d0261d5fb7f46 (diff) | |
| download | gentoo-fca729a33472e3af4d8d54acedfe6a7da3f70640.tar.gz gentoo-fca729a33472e3af4d8d54acedfe6a7da3f70640.tar.bz2 gentoo-fca729a33472e3af4d8d54acedfe6a7da3f70640.zip | |
net-libs/cppzmq: bump v4.6.0, add tests
Closes: https://bugs.gentoo.org/634076
Closes: https://github.com/gentoo/gentoo/pull/15868
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-libs/cppzmq/files/cppzmq-use-system-catch2.patch')
| -rw-r--r-- | net-libs/cppzmq/files/cppzmq-use-system-catch2.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-libs/cppzmq/files/cppzmq-use-system-catch2.patch b/net-libs/cppzmq/files/cppzmq-use-system-catch2.patch new file mode 100644 index 000000000000..b15b9172ad43 --- /dev/null +++ b/net-libs/cppzmq/files/cppzmq-use-system-catch2.patch @@ -0,0 +1,27 @@ +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -9,9 +9,10 @@ + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}) + ++find_package(Catch2 REQUIRED) + include(CTest) +-include(cmake/catch.cmake) +-include(${CATCH_MODULE_PATH}/Catch.cmake) ++include(Catch) ++find_path(CATCH_INCLUDE_DIR "catch.hpp" HINT /usr/include/catch/) + + find_package(Threads) + +@@ -31,9 +32,9 @@ + utilities.cpp + ) + +-add_dependencies(unit_tests catch) ++add_dependencies(unit_tests Catch2::Catch2) + +-target_include_directories(unit_tests PUBLIC ${CATCH_MODULE_PATH}) ++target_include_directories(unit_tests PUBLIC ${CATCH_INCLUDE_DIR}) + target_link_libraries( + unit_tests + PRIVATE cppzmq |
