mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Help: Fix typo in example of CMP0186
For CMake 4.1 and above the result of
string(REGEX REPLACE "^a" "b" result "aaaa")
is `"baaa"`, not `"abbb"`.
This commit is contained in:
@@ -27,7 +27,7 @@ at the start of the input string:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
string(REGEX REPLACE "^a" "b" result "aaaa") # result="abbb"
|
||||
string(REGEX REPLACE "^a" "b" result "aaaa") # result="baaa"
|
||||
string(REGEX MATCHALL "^a" result "aaaa") # result="a"
|
||||
|
||||
This policy provides compatibility for projects that have not been updated.
|
||||
|
||||
Reference in New Issue
Block a user