SCAPI/scripts/cpr.cmake

14 lines
377 B
CMake
Raw Permalink Normal View History

2023-08-09 18:43:03 +08:00
include(FetchContent)
set(BUILD_TESTING_BEFORE ${BUILD_TESTING})
set(CURL_DISABLE_TESTS OFF)
FetchContent_Declare(
cpr
GIT_REPOSITORY https://github.com/libcpr/cpr.git
GIT_TAG 1986262ba4e0cb052161e9e7919aef5ef08217f0
GIT_PROGRESS TRUE
)
message("cpr")
FetchContent_MakeAvailable(cpr)
set(BUILD_TESTING ${BUILD_TESTING_BEFORE} CACHE INTERNAL "" FORCE)