mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-30 19:57:41 +00: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