From 07bb27240fa3971c9944a9d461382eb7074358da Mon Sep 17 00:00:00 2001 From: John Beard Date: Fri, 30 Sep 2016 14:53:52 +0800 Subject: Help: Clarify treatment of link flags in target_link_libraries --- Help/command/target_link_libraries.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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 ```` 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 ````. The item following such a keyword will be used only for the corresponding build configuration. The ``debug`` keyword -- cgit v0.12