summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-03 13:01:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-03 13:01:54 (GMT)
commit5cdeb661ea3d6a66128ddec45ef0701730755eac (patch)
tree594e595c9973045fe9c45fe5577ac25db03fd547 /Help
parentbed8d6b887637eb3c79906d54bfb8e9e0427f65c (diff)
parent07bb27240fa3971c9944a9d461382eb7074358da (diff)
downloadCMake-5cdeb661ea3d6a66128ddec45ef0701730755eac.zip
CMake-5cdeb661ea3d6a66128ddec45ef0701730755eac.tar.gz
CMake-5cdeb661ea3d6a66128ddec45ef0701730755eac.tar.bz2
Merge topic 'doc-target_link_libraries-flags'
07bb2724 Help: Clarify treatment of link flags in target_link_libraries
Diffstat (limited to 'Help')
-rw-r--r--Help/command/target_link_libraries.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst
index d903d05..90b6575 100644
--- a/Help/command/target_link_libraries.rst
+++ b/Help/command/target_link_libraries.rst
@@ -62,6 +62,12 @@ Each ``<item>`` may be:
dependencies, so they are generally safe to specify only as private link
items that will not propagate to dependents.
+ Link flags specified here are inserted into the link command in the same
+ place as the link libraries. This might not be correct, depending on
+ the linker. Use the :prop_tgt:`LINK_FLAGS` target property to add link
+ flags explicitly. The flags will then be placed at the toolchain-defined
+ flag position in the link command.
+
* A ``debug``, ``optimized``, or ``general`` keyword immediately followed
by another ``<item>``. The item following such a keyword will be used
only for the corresponding build configuration. The ``debug`` keyword