void-packages/srcpkgs/libkeyfinder/patches/test.patch

11 lines
363 B
Diff

--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -31,5 +31,5 @@ if(NOT TARGET Catch2::Catch2)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/contrib)
endif()
target_link_libraries(keyfinder-tests PRIVATE Catch2::Catch2WithMain)
-include(Catch)
-catch_discover_tests(keyfinder-tests)
+enable_testing()
+add_test(keyfinder-tests keyfinder-tests)