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. _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
