Re: [CMake] FindLibrary only looks for lib under Windows

2010-09-15 Thread John Drescher
> Am Wednesday 15 September 2010 schrieb David Cole: >> find_library always looks for *.lib files on Windows. Those are the ones >> that need to be passed to the linker. The *.dll files are the ones that >> need to be there at runtime in order to run correctly. >> >> This behavior is intended, by d

Re: [CMake] FindLibrary only looks for lib under Windows

2010-09-15 Thread Rolf Eike Beer
Am Wednesday 15 September 2010 schrieb David Cole: > find_library always looks for *.lib files on Windows. Those are the ones > that need to be passed to the linker. The *.dll files are the ones that > need to be there at runtime in order to run correctly. > > This behavior is intended, by design,

Re: [CMake] FindLibrary only looks for lib under Windows

2010-09-15 Thread David Cole
find_library always looks for *.lib files on Windows. Those are the ones that need to be passed to the linker. The *.dll files are the ones that need to be there at runtime in order to run correctly. This behavior is intended, by design, and is working correctly. HTH, David On Tue, Sep 14, 2010

[CMake] FindLibrary only looks for lib under Windows

2010-09-14 Thread emeplease
Hi, I have modified the FindAPR.cmake module to look for the APR library under Windows. Using Find_Library , the library that it should look for is "libapr-1.dll" , however, cmake fails to find it. If I change the name from "libapr-1.dll" to "libapr-1.lib" , CMake can successfully locate it.