[CMake] TARGET_LINK_LIBRARIES with full path libraries

Nils Gladitz nilsgladitz at gmail.com
Wed Sep 17 08:04:57 EDT 2014


On 09/17/2014 01:50 PM, Volker Pilipp wrote:
> I did so and found the following strange behaviour
>
> link_directories(  /opt/XXX/lib ) -> no effect
> but
> link_directories(  /opt/ ) -> -L/opt (?!)

Probably the same logic as for target_link_libraries().
E.g. implicit link directories aren't repeated as explicit link directories.

Nils



More information about the CMake mailing list