summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-29 12:52:15 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-29 12:52:15 (GMT)
commit99a9034759c562ebad9be6e9b1fa111c3cb97daf (patch)
treeea07e19c6f24c37775deb7b62ea5efa7d2082dba /Help
parente8698861c69c3159aaa353af1e016aa7a387283a (diff)
parent8c03f157765256113928edb5e58ef3a5cf82125c (diff)
downloadCMake-99a9034759c562ebad9be6e9b1fa111c3cb97daf.zip
CMake-99a9034759c562ebad9be6e9b1fa111c3cb97daf.tar.gz
CMake-99a9034759c562ebad9be6e9b1fa111c3cb97daf.tar.bz2
Merge topic 'doc-tll-flags'
8c03f157 Help: Clarify target_link_libraries treatment of flags (#15034)
Diffstat (limited to 'Help')
-rw-r--r--Help/command/target_link_libraries.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst
index bced169..39537a7 100644
--- a/Help/command/target_link_libraries.rst
+++ b/Help/command/target_link_libraries.rst
@@ -18,7 +18,10 @@ If a library name matches that of another target in the project a
dependency will automatically be added in the build system to make sure
the library being linked is up-to-date before the target links. Item names
starting with ``-``, but not ``-l`` or ``-framework``, are treated as
-linker flags.
+linker flags. Note that such flags will be treated like any other library
+link item for purposes of transitive dependencies, so they are generally
+safe to specify only as private link items that will not propagate to
+dependents of ``<target>``.
A ``debug``, ``optimized``, or ``general`` keyword indicates that the
library immediately following it is to be used only for the