mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-24 16:49:18 -06:00
Merge topic 'out-of-dir-linking'
a1ad0a699btarget_link_libraries: Allow use with targets in other directories9bbae5ae28cmTarget: Future-proof AddLinkLibrary target lookup scopef9cb6f618acmExportFileGenerator: Use cmGeneratorTarget::ResolveTargetReference18441a6269cmGeneratorTarget: Factor target name resolution out of link item resolution2f708f5d65Make internal TARGET_PROPERTY generator expressions more robust94a75801c8Android.mk: De-duplicate link libraries logic during export8a63b23d16cmGlobalGenerator: Remove unused FindLocalGenerator method Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Patrick Stotko <stotko@cs.uni-bonn.de> Merge-request: !2370
This commit is contained in:
@@ -18,10 +18,13 @@ All of them have the general form::
|
||||
|
||||
target_link_libraries(<target> ... <item>... ...)
|
||||
|
||||
The named ``<target>`` must have been created in the current directory by
|
||||
a command such as :command:`add_executable` or :command:`add_library` and
|
||||
must not be an :ref:`ALIAS target <Alias Targets>`.
|
||||
Repeated calls for the same ``<target>`` append items in the order called.
|
||||
The named ``<target>`` must have been created by a command such as
|
||||
:command:`add_executable` or :command:`add_library` and must not be an
|
||||
:ref:`ALIAS target <Alias Targets>`. If policy :policy:`CMP0079` is not
|
||||
set to ``NEW`` then the target must have been created in the current
|
||||
directory. Repeated calls for the same ``<target>`` append items in
|
||||
the order called.
|
||||
|
||||
Each ``<item>`` may be:
|
||||
|
||||
* **A library target name**: The generated link line will have the
|
||||
|
||||
Reference in New Issue
Block a user