Fixes issue #9862 by adding official msvc import library names to FindCURL
This commit is contained in:
parent
820e255312
commit
aefd10ad70
|
@ -23,7 +23,13 @@ FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h)
|
||||||
MARK_AS_ADVANCED(CURL_INCLUDE_DIR)
|
MARK_AS_ADVANCED(CURL_INCLUDE_DIR)
|
||||||
|
|
||||||
# Look for the library.
|
# Look for the library.
|
||||||
FIND_LIBRARY(CURL_LIBRARY NAMES curl)
|
FIND_LIBRARY(CURL_LIBRARY NAMES
|
||||||
|
curl
|
||||||
|
# Windows MSVC prebuilts:
|
||||||
|
curllib
|
||||||
|
libcurl_imp
|
||||||
|
curllib_static
|
||||||
|
)
|
||||||
MARK_AS_ADVANCED(CURL_LIBRARY)
|
MARK_AS_ADVANCED(CURL_LIBRARY)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE if
|
||||||
|
@ -34,7 +40,4 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR
|
||||||
IF(CURL_FOUND)
|
IF(CURL_FOUND)
|
||||||
SET(CURL_LIBRARIES ${CURL_LIBRARY})
|
SET(CURL_LIBRARIES ${CURL_LIBRARY})
|
||||||
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIR})
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIR})
|
||||||
ELSE(CURL_FOUND)
|
|
||||||
SET(CURL_LIBRARIES)
|
|
||||||
SET(CURL_INCLUDE_DIRS)
|
|
||||||
ENDIF(CURL_FOUND)
|
ENDIF(CURL_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue