use fetch_content for cpr installation

This commit is contained in:
Maximilian Keßler 2024-01-14 14:37:23 +01:00
parent d6474bb19d
commit a2d6f0a743
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

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