use fetch_content for cpr installation
This commit is contained in:
parent
d6474bb19d
commit
a2d6f0a743
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@ include_directories(
|
||||||
${PROJECT_SOURCE_DIR}/include
|
${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)
|
find_package(Boost 1.81 COMPONENTS program_options unit_test_framework REQUIRED)
|
||||||
|
|
||||||
set(Boost_USE_STATIC_LIBS ON)
|
set(Boost_USE_STATIC_LIBS ON)
|
||||||
|
|
Loading…
Reference in a new issue