diff options
author | Philip Lowman <philip@yhbt.com> | 2010-01-05 04:25:57 (GMT) |
---|---|---|
committer | Philip Lowman <philip@yhbt.com> | 2010-01-05 04:25:57 (GMT) |
commit | aefd10ad7068136af92bd4cf9950c4385dd90271 (patch) | |
tree | 55b1660205e2e2a5c0eaef56f7140a883d4306f9 /Modules/FindCURL.cmake | |
parent | 820e255312eec17a19d360e18fc459b205cf1c72 (diff) | |
download | CMake-aefd10ad7068136af92bd4cf9950c4385dd90271.zip CMake-aefd10ad7068136af92bd4cf9950c4385dd90271.tar.gz CMake-aefd10ad7068136af92bd4cf9950c4385dd90271.tar.bz2 |
Fixes issue #9862 by adding official msvc import library names to FindCURL
Diffstat (limited to 'Modules/FindCURL.cmake')
-rw-r--r-- | Modules/FindCURL.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake index 3d8ae3a..f301b24 100644 --- a/Modules/FindCURL.cmake +++ b/Modules/FindCURL.cmake @@ -23,7 +23,13 @@ FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h) MARK_AS_ADVANCED(CURL_INCLUDE_DIR) # 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) # 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) SET(CURL_LIBRARIES ${CURL_LIBRARY}) SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIR}) -ELSE(CURL_FOUND) - SET(CURL_LIBRARIES) - SET(CURL_INCLUDE_DIRS) ENDIF(CURL_FOUND) |