[CMake] Linking to libraries that depend on other libraries

Andreas Pakulat apaku at gmx.de
Thu May 17 03:27:44 EDT 2012


Hi

Am Donnerstag, 17. Mai 2012 schrieb Petr Kmoch :

> Hi David,
>
> there's a target property LINK_INTERFACE_LIBRARIES (and
> per-configuration variants) which can be used for this purpose.
> Starting with 2.8.7, target_link_libraries() also accepts
> LINK_INTERFACE_LIBRARIES as a new argument mode, setting the property
> instead of linking.


Actually using link_interface_libraries in target_link_libraries works
already in 2.6.4 I believe, since KDE uses that and requires that cmake
version at the moment.

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120517/931d3315/attachment-0001.htm>


More information about the CMake mailing list