[CMake] Win32: unable to find Curl library with FIND_LIBRARY

Stephen Collyer scollyer at netspinner.co.uk
Tue Nov 20 08:57:36 EST 2007


Pau Garcia i Quiles wrote:

> You don't need to modify FindCURL.cmake. Just add c:\Program Files\curl
> to CMAKE_LIBRARY_PATH and c:\Program Files\curl\include to
> CMAKE_INCLUDE_PATH in your CMakeLists.txt.

Thanks to this suggestion and the previous one from Andreas
Pakulat, I have now solved the problem.

It seems that FIND_LIBRARY does indeed look for a .lib file, and
although one was present, it was called libcurl_imp.lib - I hadn't
noticed the _imp before, and renaming it to libcurl.lib, together
with the CMAKE_LIBRARY_PATH change, fixes the problem.

-- 
Regards

Steve Collyer
Netspinner Ltd


More information about the CMake mailing list