cppcodec: fix for new catch2

This commit is contained in:
Đoàn Trần Công Danh 2023-10-01 22:11:03 +07:00 committed by Đoàn Trần Công Danh
parent 68c2e5b683
commit 98b960ad4e
2 changed files with 23 additions and 0 deletions

View 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)

View File

@ -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"