2015-02-27 15:05:29 -08:00
|
|
|
mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR)
|
2012-12-14 03:30:17 -08:00
|
|
|
|
2019-06-09 18:56:55 -07:00
|
|
|
find_library(CURL_LIBRARY NAMES curl libcurl)
|
2015-02-27 15:05:29 -08:00
|
|
|
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
|
2012-12-14 03:30:17 -08:00
|
|
|
|
2015-02-27 15:05:29 -08:00
|
|
|
if(WIN32)
|
2019-06-09 18:56:55 -07:00
|
|
|
# If VCPKG_APPLOCAL_DEPS is ON, dll's are automatically handled by VCPKG
|
|
|
|
if(NOT VCPKG_APPLOCAL_DEPS)
|
|
|
|
find_file(CURL_DLL NAMES libcurl-4.dll libcurl.dll
|
|
|
|
DOC "Path to the cURL DLL (for installation)")
|
|
|
|
mark_as_advanced(CURL_DLL)
|
|
|
|
endif()
|
2015-02-27 15:05:29 -08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2019-06-09 18:56:55 -07:00
|
|
|
find_package_handle_standard_args(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR)
|