diff options
author | Brad King <brad.king@kitware.com> | 2018-06-08 13:37:35 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-06-08 13:37:48 (GMT) |
commit | 812eaa465ca026ff0413f8c78b41edccd7eefdc7 (patch) | |
tree | 4804a2e64f9a24679ce1b7c1bee6bf65086671e2 /Help/command/add_link_options.rst | |
parent | e9f2a29fee7fb67d6a3eafa396f4f630795a99ec (diff) | |
parent | 66ea1a3795f76ce921bc48f82ff228bcceed4524 (diff) | |
download | CMake-812eaa465ca026ff0413f8c78b41edccd7eefdc7.zip CMake-812eaa465ca026ff0413f8c78b41edccd7eefdc7.tar.gz CMake-812eaa465ca026ff0413f8c78b41edccd7eefdc7.tar.bz2 |
Merge topic 'LINK_OPTIONS'
66ea1a3795 LINK_OPTIONS: Add support of "LINKER:" prefix
c1f5a44b28 LINK_OPTIONS: Add new family of properties
8e28d2630a Makefile generator: link flags management refactoring
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Turbov <i.zaufi@gmail.com>
Merge-request: !2033
Diffstat (limited to 'Help/command/add_link_options.rst')
-rw-r--r-- | Help/command/add_link_options.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Help/command/add_link_options.rst b/Help/command/add_link_options.rst new file mode 100644 index 0000000..821198d --- /dev/null +++ b/Help/command/add_link_options.rst @@ -0,0 +1,26 @@ +add_link_options +---------------- + +Adds options to the link of targets. + +:: + + add_link_options(<option> ...) + +Adds options to the link step for targets in the current directory and below +that are added after this command is invoked. See documentation of the +:prop_dir:`directory <LINK_OPTIONS>` and +:prop_tgt:`target <LINK_OPTIONS>` ``LINK_OPTIONS`` properties. + +This command can be used to add any options, but alternative commands +exist to add libraries (:command:`target_link_libraries` or +:command:`link_libraries`). + +Arguments to ``add_link_options`` may use "generator expressions" with +the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` +manual for available expressions. See the :manual:`cmake-buildsystem(7)` +manual for more on defining buildsystem properties. + +.. include:: LINK_OPTIONS_LINKER.txt + +.. include:: OPTIONS_SHELL.txt |