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)