summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorPatrick Stotko <stotko@cs.uni-bonn.de>2018-05-11 16:06:53 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-15 14:22:35 (GMT)
commitc9349cc1b94a08b4f5ed86a397e72ceed50847dd (patch)
treed7df775c58c8f2c539e848abf7dc513a6f4d9a20 /Help
parent743f24bac68010c0157dc0349958e09ed1784f5f (diff)
downloadCMake-c9349cc1b94a08b4f5ed86a397e72ceed50847dd.zip
CMake-c9349cc1b94a08b4f5ed86a397e72ceed50847dd.tar.gz
CMake-c9349cc1b94a08b4f5ed86a397e72ceed50847dd.tar.bz2
target_link_libraries: Allow use with targets in other directories
Previously the command did not allow naming targets on the LHS that were not created in the calling directory. Lift this restriction to enable more flexible use by projects. Fixes: #17943
Diffstat (limited to 'Help')
-rw-r--r--Help/command/target_link_libraries.rst2
-rw-r--r--Help/release/dev/subdirectory-linking.rst5
2 files changed, 6 insertions, 1 deletions
diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst
index fcc2c07..6379730 100644
--- a/Help/command/target_link_libraries.rst
+++ b/Help/command/target_link_libraries.rst
@@ -18,7 +18,7 @@ All of them have the general form::
target_link_libraries(<target> ... <item>... ...)
-The named ``<target>`` must have been created in the current directory by
+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>`.
Repeated calls for the same ``<target>`` append items in the order called.
diff --git a/Help/release/dev/subdirectory-linking.rst b/Help/release/dev/subdirectory-linking.rst
new file mode 100644
index 0000000..1909c36
--- /dev/null
+++ b/Help/release/dev/subdirectory-linking.rst
@@ -0,0 +1,5 @@
+subdirectory-linking
+--------------------
+
+* The :command:`target_link_libraries` command may now be called
+ to modify targets created outside the current directory.