Group :: Desenvolvimento/C++
RPM: cli11
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: cli11-catch.patch
Download
Download
--- a/tests/CMakeLists.txt 2021-09-20 13:50:58.000000000 -0600
+++ b/tests/CMakeLists.txt 2021-09-21 08:24:25.205696936 -0600
@@ -70,17 +70,6 @@ target_include_directories(catch_main PU
# that would require changing the includes. FetchContent would be better, but
# requires newer CMake.
-set(url https://github.com/philsquared/Catch/releases/download/v2.13.6/catch.hpp)
-file(
- DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch.hpp"
- STATUS status
- EXPECTED_HASH SHA256=681e7505a50887c9085539e5135794fc8f66d8e5de28eadf13a30978627b0f47)
-list(GET status 0 error)
-if(error)
- message(FATAL_ERROR "Could not download ${url}")
-endif()
-target_include_directories(catch_main PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
-
# Target must already exist
macro(add_catch_test TESTNAME)
target_link_libraries(${TESTNAME} PUBLIC catch_main)