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