[CMake] Linking to libraries that depend on other libraries

Alexander Neundorf a.neundorf-work at gmx.net
Sun May 20 07:42:40 EDT 2012


On Thursday 17 May 2012, Andreas Pakulat wrote:
> 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.
LINK_INTERFACE_LIBRARIES exists since cmake 2.6.2.

http://www.cmake.org/Wiki/CMake_2.6.1_Docs
http://www.cmake.org/Wiki/CMake_2.6.2_Docs
http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix/Commands

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120520/bdec8b5e/attachment.htm>


More information about the CMake mailing list