nutri/cmake/FindCPR.cmake

12 lines
237 B
CMake
Raw Permalink Normal View History

2025-01-15 12:40:39 +00:00
find_package(cpr QUIET)
if(NOT cpr_FOUND)
include(FetchContent)
FetchContent_Declare(
cpr
GIT_REPOSITORY https://github.com/libcpr/cpr.git
GIT_TAG 1.11.0
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(cpr)
endif()