[CMake] target_link_libraries replacing fully-qualified library with -l<x>
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Jan 29 12:11:44 EST 2015
On Thursday, January 29, 2015 08:39:33 Chris Green wrote:
> On 1/29/15 7:41 AM, Brad King wrote:
> > On 01/28/2015 03:12 PM, Chris Green wrote:
> >> target_link_libraries(<target> /X/Y/libtbb.so)
> >>
> >> results in link.txt files containing -ltbb.
> >
> > This happens when the library is in an implicit link directory,
> > or possibly when the library does not have an SONAME field set.
>
> Thanks for this, Brad.
>
> Assuming that the list of implicit link directories is internal to CMake
> and nobody has added to it by mistake, then I'm guessing there's no SONAME:
just to make sure: you did check that the library directory is not part of
LIBRARY_PATH ?
Alex
More information about the CMake
mailing list