[CMake] TARGET_LINK_LIBRARIES with full path libraries

Alexander Neundorf a.neundorf-work at gmx.net
Wed Sep 17 16:00:51 EDT 2014


On Wednesday, September 17, 2014 14:50:40 Volker Pilipp wrote:
...
> I suppose it is the line
> LIBRARY_PATH=/opt/XXX/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/:/opt/XXX/lib/g
> cc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib64/:/lib/../lib64/:/usr/lib
> /../lib64/:/opt/XXX/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../:/lib/:/
> usr/lib/

yes, cmake checks $LIBRARY_PATH and uses -l for the libraries located in these 
directories.
I stumbled about that behaviour last year or so, I guess it's a feature.

Alex



More information about the CMake mailing list