cppcodec: fix for new catch2
This commit is contained in:
parent
68c2e5b683
commit
98b960ad4e
22
srcpkgs/cppcodec/patches/new-catch2.patch
Normal file
22
srcpkgs/cppcodec/patches/new-catch2.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- a/test/test_cppcodec.cpp
|
||||
+++ b/test/test_cppcodec.cpp
|
||||
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
-#include <catch2/catch.hpp>
|
||||
+#include <catch2/catch_all.hpp>
|
||||
|
||||
#include <cppcodec/base32_crockford.hpp>
|
||||
#include <cppcodec/base32_hex.hpp>
|
||||
--- a/test/CMakeLists.txt
|
||||
+++ b/test/CMakeLists.txt
|
||||
@@ -15,6 +15,8 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(test_cppcodec test_cppcodec.cpp)
|
||||
+find_package(Catch2)
|
||||
+target_link_libraries(test_cppcodec Catch2::Catch2WithMain)
|
||||
add_test(cppcodec test_cppcodec)
|
||||
|
||||
add_executable(benchmark_cppcodec benchmark_cppcodec.cpp)
|
@ -3,6 +3,7 @@ pkgname=cppcodec
|
||||
version=0.2
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DCMAKE_CXX_STANDARD=17"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="catch2"
|
||||
short_desc="Header-only C++11 library to encode/decode base64*, base32* and hex"
|
||||
|
Loading…
x
Reference in New Issue
Block a user