[CMake] Win32: unable to find Curl library with FIND_LIBRARY
Andreas Pakulat
apaku at gmx.de
Tue Nov 20 07:40:30 EST 2007
On 20.11.07 12:20:41, Stephen Collyer wrote:
> I'm modifying FindCURL.cmake to match my local Win32 installation
> of a development tree for Curl, which is installed as follows:
>
> c:\Program Files\curl\libcurl.dll
> c:\Program Files\curl\include\curl\curl.h
>
> I've managed to find the include directory by changing the
> code as follows:
>
> FIND_PATH(CURL_INCLUDE_DIR NAMES curl/curl.h curl/include/curl/curl.h)
>
> The final path matches the layout and CURL_INCLUDE_DIR is set.
> However, I can't get FIND_LIBRARY to find the libcurl.dll file.
> The original code was:
A .dll is not enough on win32 to use the library. Make sure you also
have either a .def file with the exported symbols or a static import
lib (for MSVC these are called XXX.lib IIRC, for mingw its usuall
.dll.a)
I don't know wether find_library also looks for those, though.
Andreas
--
Today is the first day of the rest of your life.
More information about the CMake
mailing list