file: STRINGS + REGEX store match results

Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
Cristian Le
2024-01-03 20:34:56 +01:00
committed by Brad King
parent ff0085cf74
commit fa00928bcd
18 changed files with 133 additions and 1 deletions
+5
View File
@@ -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