From 2adfa8b0d4ce9ccae353c5e1450906fa06e11fec Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 11 Sep 2025 13:32:30 +0200 Subject: [PATCH] Help: Fix version added for `CMAKE_MATCH_` This was added in 2.6.0 by commit c1b3484c2d (ENH: store the matches for paren-delimited subexpression..., 2007-08-21, v2.6.0~1227), not in 3.9. Only the documentation at this place was added in 3.9, by commit eb08e1febb (Help: Document CMAKE_MATCH_ variables, 2017-04-18, v3.9.0-rc1~257^2) --- Help/command/if.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Help/command/if.rst b/Help/command/if.rst index 4fed570d44..14b199d9a5 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -264,7 +264,7 @@ Comparisons True if the given string or variable's value matches the given regular expression. See :ref:`Regex Specification` for regex format. - .. versionadded:: 3.9 + .. versionadded:: 2.6 ``()`` groups are captured in :variable:`CMAKE_MATCH_` variables. .. signature:: if( LESS )