summaryrefslogtreecommitdiffstats
path: root/Help/command/target_link_libraries.rst
diff options
context:
space:
mode:
authorJohn Beard <john.j.beard@gmail.com>2016-09-30 06:53:52 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-03 12:53:43 (GMT)
commit07bb27240fa3971c9944a9d461382eb7074358da (patch)
tree8b0a3ddd0e882a3d4c3f00fe0cb340902b2986d9 /Help/command/target_link_libraries.rst
parent7246e0c2efea17737b7f93921df61a319624e681 (diff)
downloadCMake-07bb27240fa3971c9944a9d461382eb7074358da.zip
CMake-07bb27240fa3971c9944a9d461382eb7074358da.tar.gz
CMake-07bb27240fa3971c9944a9d461382eb7074358da.tar.bz2
Help: Clarify treatment of link flags in target_link_libraries
Diffstat (limited to 'Help/command/target_link_libraries.rst')
-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