From a2d6f0a743a825b0eb66b91352bf81af90a478c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 14 Jan 2024 14:37:23 +0100 Subject: [PATCH] use fetch_content for cpr installation --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c09332..a79c1c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,10 @@ include_directories( ${PROJECT_SOURCE_DIR}/include ) -find_package(cpr) +include(FetchContent) +FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git + GIT_TAG 2553fc41450301cd09a9271c8d2c3e0cf3546b73) +FetchContent_MakeAvailable(cpr) find_package(Boost 1.81 COMPONENTS program_options unit_test_framework REQUIRED) set(Boost_USE_STATIC_LIBS ON)