summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-18 18:45:04 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-18 18:45:04 (GMT)
commit8dd997526370c4d1232bcde46e0eb2a751dfa3fd (patch)
treed4a8a61a2341274f055af1d7183831578829c6c7 /Help/command
parenta0091a697e275a86a493e4fd87902a0eb9067d55 (diff)
downloadCMake-8dd997526370c4d1232bcde46e0eb2a751dfa3fd.zip
CMake-8dd997526370c4d1232bcde46e0eb2a751dfa3fd.tar.gz
CMake-8dd997526370c4d1232bcde46e0eb2a751dfa3fd.tar.bz2
Help: Link from if(MATCHES) to regex specification docs
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/if.rst2
-rw-r--r--Help/command/string.rst2
2 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index 2a087d0..f0a9588 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -103,7 +103,7 @@ Possible expressions are:
``if(<variable|string> MATCHES regex)``
True if the given string or variable's value matches the given regular
- expression.
+ expression. See :ref:`Regex Specification` for regex format.
``if(<variable|string> LESS <variable|string>)``
True if the given string or variable's value is a valid number and less
diff --git a/Help/command/string.rst b/Help/command/string.rst
index 7199178..fe38c99 100644
--- a/Help/command/string.rst
+++ b/Help/command/string.rst
@@ -77,6 +77,8 @@ The replace expression may refer to paren-delimited subexpressions of the
match using ``\1``, ``\2``, ..., ``\9``. Note that two backslashes (``\\1``)
are required in CMake code to get a backslash through argument parsing.
+.. _`Regex Specification`:
+
Regex Specification
"""""""""""""""""""