View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0013563 | CMake | CMake | public | 2012-09-30 04:19 | 2013-03-04 08:38 |
|
Reporter | Andreas Mohr | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | Windows | OS | 7 | OS Version | 32bit |
Product Version | CMake 2.8.8 | |
Target Version | CMake 2.8.10 | Fixed in Version | CMake 2.8.10 | |
|
Summary | 0013563: [PATCH] FindCURL: fails to find older MSVC prebuilts |
Description | Older Windows MSVC CURL prebuilts have the .lib named as libcurl.lib, which the current (git master) FindCURL.cmake fails to find. With my addition things configure nicely.
Thanks! |
Additional Information | When handling this, might want/need to take into account "0007263: FindCURL - set required define and dependent library" as well. |
Tags | No tags attached. |
|
Attached Files | FindCURL.cmake.diff [^] (622 bytes) 2012-09-30 04:19 [Show Content] [Hide Content]diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake
index e080f1a..0fb8f45 100644
--- a/Modules/FindCURL.cmake
+++ b/Modules/FindCURL.cmake
@@ -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)
|
|