diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-06-30 09:43:11 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2019-07-03 13:38:25 (GMT) |
commit | 9cc6befe1b7de68910787c5732e436393de2bdfc (patch) | |
tree | 84af3cb082937cf384510330be948f57f13eb976 /Help/command/list.rst | |
parent | 074fbdb73f052212003ef65804c3532380c76dcd (diff) | |
download | CMake-9cc6befe1b7de68910787c5732e436393de2bdfc.zip CMake-9cc6befe1b7de68910787c5732e436393de2bdfc.tar.gz CMake-9cc6befe1b7de68910787c5732e436393de2bdfc.tar.bz2 |
Help: Improve formatting of list(TRANSFORM) sub-options
Diffstat (limited to 'Help/command/list.rst')
-rw-r--r-- | Help/command/list.rst | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Help/command/list.rst b/Help/command/list.rst index 866a597..39e7e2a 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -223,41 +223,41 @@ The actions have exactly the same semantics as sub-commands of the ``APPEND``, ``PREPEND``: Append, prepend specified value to each element of the list. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> <APPEND|PREPEND> <value> ...) + list(TRANSFORM <list> <APPEND|PREPEND> <value> ...) ``TOUPPER``, ``TOLOWER``: Convert each element of the list to upper, lower characters. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> <TOLOWER|TOUPPER> ...) + list(TRANSFORM <list> <TOLOWER|TOUPPER> ...) ``STRIP``: Remove leading and trailing spaces from each element of the list. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> STRIP ...) + list(TRANSFORM <list> STRIP ...) ``GENEX_STRIP``: Strip any :manual:`generator expressions <cmake-generator-expressions(7)>` from each element of the list. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> GENEX_STRIP ...) + list(TRANSFORM <list> GENEX_STRIP ...) ``REPLACE``: Match the regular expression as many times as possible and substitute the replacement expression for the match for each element of the list (Same semantic as ``REGEX REPLACE`` from :command:`string` command). -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> REPLACE <regular_expression> - <replace_expression> ...) + list(TRANSFORM <list> REPLACE <regular_expression> + <replace_expression> ...) ``<SELECTOR>`` determines which elements of the list will be transformed. Only one type of selector can be specified at a time. When given, @@ -265,23 +265,23 @@ Only one type of selector can be specified at a time. When given, ``AT``: Specify a list of indexes. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> <ACTION> AT <index> [<index> ...] ...) + list(TRANSFORM <list> <ACTION> AT <index> [<index> ...] ...) ``FOR``: Specify a range with, optionally, an increment used to iterate over the range. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> <ACTION> FOR <start> <stop> [<step>] ...) + list(TRANSFORM <list> <ACTION> FOR <start> <stop> [<step>] ...) ``REGEX``: Specify a regular expression. Only elements matching the regular expression will be transformed. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM <list> <ACTION> REGEX <regular_expression> ...) + list(TRANSFORM <list> <ACTION> REGEX <regular_expression> ...) Ordering |