[CMake] target_link_libraries replacing fully-qualified library with -l<x>

Brad King brad.king at kitware.com
Thu Jan 29 11:31:33 EST 2015


On 01/29/2015 10:53 AM, Nils Gladitz wrote:
> Perhaps failing to read a SONAME should imply that a SONAME is available 
> (in context of cmComputeLinkInformation).
> 
> Might be easier/more reliable than guessing if the given file is 
> actually a linker script?

We don't actually know anything about the binary format so failing
to parse ELF cannot assume anything.  That's why it falls back to
the symlink checks and such.

Ideally we should detect linker scripts and always use full paths
to them to make sure the proper script is used, and then trust it
to know what it is doing.

-Brad



More information about the CMake mailing list