2013-10-15 19:17:36 +04:00
|
|
|
LINK_INTERFACE_LIBRARIES
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
List public interface libraries for a shared library or executable.
|
|
|
|
|
|
|
|
By default linking to a shared library target transitively links to
|
|
|
|
targets with which the library itself was linked. For an executable
|
2014-11-22 14:45:43 +03:00
|
|
|
with exports (see the :prop_tgt:`ENABLE_EXPORTS` target property) no
|
|
|
|
default transitive link dependencies are used. This property replaces the default
|
2013-10-15 19:17:36 +04:00
|
|
|
transitive link dependencies with an explicit list. When the target
|
2014-11-22 14:46:13 +03:00
|
|
|
is linked into another target using the :command:`target_link_libraries`
|
|
|
|
command, the libraries listed (and recursively
|
2013-10-15 19:17:36 +04:00
|
|
|
their link interface libraries) will be provided to the other target
|
|
|
|
also. If the list is empty then no transitive link dependencies will
|
|
|
|
be incorporated when this target is linked into another target even if
|
|
|
|
the default set is non-empty. This property is initialized by the
|
2014-11-22 14:45:43 +03:00
|
|
|
value of the :variable:`CMAKE_LINK_INTERFACE_LIBRARIES` variable if it is
|
|
|
|
set when a target is created. This property is ignored for ``STATIC``
|
|
|
|
libraries.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-11-22 14:45:43 +03:00
|
|
|
This property is overridden by the :prop_tgt:`INTERFACE_LINK_LIBRARIES`
|
|
|
|
property if policy :policy:`CMP0022` is ``NEW``.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-11-22 14:45:43 +03:00
|
|
|
This property is deprecated. Use :prop_tgt:`INTERFACE_LINK_LIBRARIES`
|
|
|
|
instead.
|
2014-11-22 15:16:05 +03:00
|
|
|
|
2015-04-02 22:45:48 +03:00
|
|
|
Creating Relocatable Packages
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2014-11-22 15:16:05 +03:00
|
|
|
.. |INTERFACE_PROPERTY_LINK| replace:: ``LINK_INTERFACE_LIBRARIES``
|
|
|
|
.. include:: /include/INTERFACE_LINK_LIBRARIES_WARNING.txt
|