mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
file: STRINGS + REGEX store match results
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
@@ -113,6 +113,11 @@ Reading
|
||||
Consider only strings that match the given regular expression,
|
||||
as described under :ref:`string(REGEX) <Regex Specification>`.
|
||||
|
||||
.. versionchanged:: 3.29
|
||||
Capture groups from the last match in the file are stored in
|
||||
:variable:`CMAKE_MATCH_<n>`, similar to
|
||||
:command:`string(REGEX MATCHALL)`. See policy :policy:`CMP0159`.
|
||||
|
||||
``ENCODING <encoding-type>``
|
||||
.. versionadded:: 3.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user