diff options
author | Tom Lankhorst <hello@tomlankhorst.nl> | 2019-10-15 19:35:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-16 13:49:08 (GMT) |
commit | a7ef28b9d8b30b7d5249ade425a9cd2e267da68c (patch) | |
tree | 198a40029178a08bd894c24f6e0cafa74a74b45b /Help/command/LINK_OPTIONS_LINKER.txt | |
parent | 9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 (diff) | |
download | CMake-a7ef28b9d8b30b7d5249ade425a9cd2e267da68c.zip CMake-a7ef28b9d8b30b7d5249ade425a9cd2e267da68c.tar.gz CMake-a7ef28b9d8b30b7d5249ade425a9cd2e267da68c.tar.bz2 |
Help: Fix typos and style in add_link_options documentation
Diffstat (limited to 'Help/command/LINK_OPTIONS_LINKER.txt')
-rw-r--r-- | Help/command/LINK_OPTIONS_LINKER.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Help/command/LINK_OPTIONS_LINKER.txt b/Help/command/LINK_OPTIONS_LINKER.txt index a723375..3f66181 100644 --- a/Help/command/LINK_OPTIONS_LINKER.txt +++ b/Help/command/LINK_OPTIONS_LINKER.txt @@ -1,8 +1,8 @@ -To pass options to the linker tool, each compiler driver has is own syntax. -The ``LINKER:`` prefix can be used to specify, in a portable way, options -to pass to the linker tool. The ``LINKER:`` prefix is replaced by the required -driver option and the rest of the option string defines linker arguments using -``,`` as separator. These arguments will be formatted according to the +To pass options to the linker tool, each compiler driver has its own syntax. +The ``LINKER:`` prefix and ``,`` separator can be used to specify, in a portable +way, options to pass to the linker tool. ``LINKER:`` is replaced by the +appropriate driver option and ``,`` by the appropriate driver separator. +The driver prefix and driver separator are given by the values of the :variable:`CMAKE_<LANG>_LINKER_WRAPPER_FLAG` and :variable:`CMAKE_<LANG>_LINKER_WRAPPER_FLAG_SEP` variables. @@ -12,11 +12,11 @@ For example, ``"LINKER:-z,defs"`` becomes ``-Xlinker -z -Xlinker defs`` for The ``LINKER:`` prefix can be specified as part of a ``SHELL:`` prefix expression. -The ``LINKER:`` prefix supports, as alternate syntax, specification of -arguments using ``SHELL:`` prefix and space as separator. Previous example -becomes ``"LINKER:SHELL:-z defs"``. +The ``LINKER:`` prefix supports, as an alternative syntax, specification of +arguments using the ``SHELL:`` prefix and space as separator. The previous +example then becomes ``"LINKER:SHELL:-z defs"``. .. note:: - Specifying ``SHELL:`` prefix elsewhere than at the beginning of the + Specifying the ``SHELL:`` prefix anywhere other than at the beginning of the ``LINKER:`` prefix is not supported. |