mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Help: Improve formatting for cross-referenced genexes
This commit is contained in:
@@ -958,9 +958,9 @@ List Transformations
|
||||
|
||||
Joins the ``list`` with the content of the ``glue`` string inserted between
|
||||
each item. This is conceptually the same operation as
|
||||
:ref:`$\<LIST:JOIN,list,glue\> <GenEx LIST-JOIN>`, but the two have
|
||||
:cref:`$\<LIST:JOIN,list,glue\> <GenEx LIST-JOIN>`, but the two have
|
||||
different behavior with regard to empty items.
|
||||
:ref:`$\<LIST:JOIN,list,glue\> <GenEx LIST-JOIN>` preserves all empty items,
|
||||
:cref:`$\<LIST:JOIN,list,glue\> <GenEx LIST-JOIN>` preserves all empty items,
|
||||
whereas ``$<JOIN:list,glue>`` drops all empty items from the list.
|
||||
|
||||
.. genex:: $<REMOVE_DUPLICATES:list>
|
||||
@@ -970,7 +970,7 @@ List Transformations
|
||||
Removes duplicated items in the given ``list``. The relative order of items
|
||||
is preserved, and if duplicates are encountered, only the first instance is
|
||||
retained. The result is the same as
|
||||
:ref:`$\<LIST:REMOVE_DUPLICATES,list\> <GenEx LIST-REMOVE_DUPLICATES>`.
|
||||
:cref:`$\<LIST:REMOVE_DUPLICATES,list\> <GenEx LIST-REMOVE_DUPLICATES>`.
|
||||
|
||||
.. genex:: $<FILTER:list,INCLUDE|EXCLUDE,regex>
|
||||
|
||||
@@ -978,7 +978,7 @@ List Transformations
|
||||
|
||||
Includes or removes items from ``list`` that match the regular expression
|
||||
``regex``. The result is the same as
|
||||
:ref:`$\<LIST:FILTER,list,INCLUDE|EXCLUDE,regex\> <GenEx LIST-FILTER>`.
|
||||
:cref:`$\<LIST:FILTER,list,INCLUDE|EXCLUDE,regex\> <GenEx LIST-FILTER>`.
|
||||
|
||||
.. _GenEx List Ordering:
|
||||
|
||||
@@ -1050,7 +1050,7 @@ Most of the expressions in this section are closely associated with the
|
||||
the form of a generator expression.
|
||||
|
||||
For all generator expressions in this section, paths are expected to be in
|
||||
cmake-style format. The :ref:`$\<PATH:CMAKE_PATH\> <GenEx PATH-CMAKE_PATH>`
|
||||
cmake-style format. The :cref:`$\<PATH:CMAKE_PATH\> <GenEx PATH-CMAKE_PATH>`
|
||||
generator expression can be used to convert a native path to a cmake-style
|
||||
one.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user