TmpMenu/cmake/cpr.cmake

14 lines
343 B
CMake
Raw Normal View History

include(FetchContent)
set(BUILD_TESTING_BEFORE ${BUILD_TESTING})
2022-12-30 09:09:33 +08:00
set(CURL_DISABLE_TESTS OFF)
FetchContent_Declare(
cpr
GIT_REPOSITORY https://github.com/libcpr/cpr.git
GIT_TAG 1.10.5
GIT_PROGRESS TRUE
)
message("cpr")
FetchContent_MakeAvailable(cpr)
set(BUILD_TESTING ${BUILD_TESTING_BEFORE} CACHE INTERNAL "" FORCE)