mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
Help: links to CMake regex syntax
This commit is contained in:

committed by
Brad King

parent
bf4e494773
commit
0d210b92fa
@@ -116,7 +116,8 @@ Parse a list of ASCII strings from ``<filename>`` and store it in
|
|||||||
binary while reading unless this option is given.
|
binary while reading unless this option is given.
|
||||||
|
|
||||||
``REGEX <regex>``
|
``REGEX <regex>``
|
||||||
Consider only strings that match the given regular expression.
|
Consider only strings that match the given regular expression,
|
||||||
|
as described under :ref:`string(REGEX) <Regex Specification>`.
|
||||||
|
|
||||||
``ENCODING <encoding-type>``
|
``ENCODING <encoding-type>``
|
||||||
.. versionadded:: 3.1
|
.. versionadded:: 3.1
|
||||||
|
@@ -540,7 +540,8 @@ any expression. For example, the code
|
|||||||
|
|
||||||
will extract and install header files from a source tree.
|
will extract and install header files from a source tree.
|
||||||
|
|
||||||
Some options may follow a ``PATTERN`` or ``REGEX`` expression and are applied
|
Some options may follow a ``PATTERN`` or ``REGEX`` expression as described
|
||||||
|
under :ref:`string(REGEX) <Regex Specification>` and are applied
|
||||||
only to files or directories matching them. The ``EXCLUDE`` option will
|
only to files or directories matching them. The ``EXCLUDE`` option will
|
||||||
skip the matched file or directory. The ``PERMISSIONS`` option overrides
|
skip the matched file or directory. The ``PERMISSIONS`` option overrides
|
||||||
the permissions setting for the matched file or directory. For
|
the permissions setting for the matched file or directory. For
|
||||||
|
@@ -141,8 +141,8 @@ Appends elements to the list.
|
|||||||
Includes or removes items from the list that match the mode's pattern.
|
Includes or removes items from the list that match the mode's pattern.
|
||||||
In ``REGEX`` mode, items will be matched against the given regular expression.
|
In ``REGEX`` mode, items will be matched against the given regular expression.
|
||||||
|
|
||||||
For more information on regular expressions see also the
|
For more information on regular expressions look under
|
||||||
:command:`string` command.
|
:ref:`string(REGEX) <Regex Specification>`.
|
||||||
|
|
||||||
.. _INSERT:
|
.. _INSERT:
|
||||||
|
|
||||||
|
@@ -642,7 +642,8 @@ that may contain the following fields:
|
|||||||
|
|
||||||
An optional string specifying a regex for test names. Equivalent to
|
An optional string specifying a regex for test names. Equivalent to
|
||||||
passing ``--tests-regex`` on the command line. This field supports
|
passing ``--tests-regex`` on the command line. This field supports
|
||||||
macro expansion.
|
macro expansion. CMake regex syntax is described under
|
||||||
|
:ref:`string(REGEX) <Regex Specification>`.
|
||||||
|
|
||||||
|
|
||||||
``label``
|
``label``
|
||||||
|
@@ -158,7 +158,8 @@ Options
|
|||||||
See `Show as JSON Object Model`_.
|
See `Show as JSON Object Model`_.
|
||||||
|
|
||||||
``-L <regex>, --label-regex <regex>``
|
``-L <regex>, --label-regex <regex>``
|
||||||
Run tests with labels matching regular expression.
|
Run tests with labels matching regular expression as described under
|
||||||
|
:ref:`string(REGEX) <Regex Specification>`.
|
||||||
|
|
||||||
This option tells CTest to run only the tests whose labels match the
|
This option tells CTest to run only the tests whose labels match the
|
||||||
given regular expression. When more than one ``-L`` option is given,
|
given regular expression. When more than one ``-L`` option is given,
|
||||||
|
Reference in New Issue
Block a user