[CMake] Does find_library check that a found library does in fact link?

Rolf Eike Beer eike at sf-mail.de
Wed Sep 28 01:57:23 EDT 2011


Michael Wild wrote:
> On 09/28/2011 02:44 AM, Clifford Yapp wrote:
> > I've run into a situation where find_library is returning a symlink:
> > 
> > /usr/lib/libblah.so -> libblah.so.1
> > 
> >  but libblah.so.1 does not actually exist (e.g. the symlink is bad).
> > 
> > Is there an option I can set to have find_library ensure that a found
> > library file is valid and links?

> Yes, but you need to do it yourself, e.g. use the CheckFunctionExists
> module.

Which is unreliable on it's own as we found out during the FindThreads pthread 
stuff. I think this should be considered as a bug.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110928/00a7f5f4/attachment.pgp>


More information about the CMake mailing list