You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
508 B
CMake

# usage:
# FetchContent_MakeAvailable(curl)
# target_link_libraries(${PROJECT_NAME} PRIVATE libcurl)
if (NOT DEFINED CURL_GIT_TAG)
message(FATAL_ERROR "CURL_GIT_TAG is not defined.\n see https://github.com/curl/curl and grab a release tag.\n example: set(CURL_GIT_TAG curl-8_0_1)")
endif()
FetchContent_Declare(
curl
GIT_REPOSITORY https://github.com/curl/curl.git
GIT_TAG ${CURL_GIT_TAG}
)
include(${CMAKE_SOURCE_DIR}/cmake/Utils.cmake)
print_git_tag(${CURL_GIT_TAG})