[CMake] FIND_LIBRARY not using CMAKE_FIND_LIBRARY_SUFFIXES

Oliver Zheng mailinglists+cmake at oliverzheng.com
Wed Dec 3 17:48:35 EST 2008


Hi,

I am using Cygwin on Windows, using CMake 2.6.2. I was originally debugging
FindBoost, when I narrowed the problem down to FIND_LIBRARY. This simple
statement does not find the library:

SET (CMAKE_FIND_LIBRARY_SUFFIXES .a)
FIND_LIBRARY(NAMES test HINTS /usr/local/lib)

However, this works:

FIND_LIBRARY(NAMES test.a HINTS /usr/local/lib)

Is this a known bug (that's only prevalent on Cygwin)? To solve my problem
with FindBoost, I had to manually add in the ".a" into the FIND_LIBRARY
command.

Thanks,
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081203/376514be/attachment.htm>


More information about the CMake mailing list