17 lines
427 B
CMake
17 lines
427 B
CMake
if(STATIC_CURL)
|
|
set(CURL_USE_STATIC_LIBS TRUE)
|
|
endif()
|
|
|
|
find_package(CURL QUIET)
|
|
if(CURL_FOUND)
|
|
message(STATUS "Found cURL: ${CURL_LIBRARIES} (found version \"${CURL_VERSION_STRING}\")")
|
|
return()
|
|
endif()
|
|
|
|
# If desired libcurl was not found, build from source
|
|
if(NOT LIBCURL_VERSION)
|
|
set(LIBCURL_VERSION "curl-8_8_0")
|
|
endif()
|
|
message(STATUS "Fetching and configuring cURL version ${LIBCURL_VERSION}")
|
|
include(FetchCurl)
|