FindCURL: Find older MSVC prebuilts

Older Windows MSVC CURL prebuilts have the .lib named as "libcurl.lib".
This commit is contained in:
Andreas Mohr 2012-09-30 04:19:00 -04:00 committed by Brad King
parent 554d4ed584
commit 708b53e709
1 changed files with 3 additions and 1 deletions

View File

@ -24,13 +24,15 @@
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
mark_as_advanced(CURL_INCLUDE_DIR)
# Look for the library.
# Look for the library (sorted from most current/relevant entry to least).
find_library(CURL_LIBRARY NAMES
curl
# Windows MSVC prebuilts:
curllib
libcurl_imp
curllib_static
# Windows older "Win32 - MSVC" prebuilts (libcurl.lib, e.g. libcurl-7.15.5-win32-msvc.zip):
libcurl
)
mark_as_advanced(CURL_LIBRARY)