19 lines
340 B
CMake
19 lines
340 B
CMake
include(FetchContent)
|
|
|
|
if(NOT DEFINED CURL_REPO)
|
|
set(CURL_REPO https://github.com/curl/curl)
|
|
endif()
|
|
|
|
FetchContent_Declare(
|
|
curl
|
|
GIT_REPOSITORY ${CURL_REPO}
|
|
GIT_TAG curl-7_79_1
|
|
GIT_SHALLOW TRUE
|
|
)
|
|
|
|
set(BUILD_CURL_EXE OFF)
|
|
set(CURL_USE_OPENSSL OFF)
|
|
set(CURL_USE_ZLIB OFF)
|
|
|
|
FetchContent_MakeAvailable(curl)
|