
When doing successive matches, track the input start and current search start positions separately to prevent the `^` anchor from matching in the middle of the string. Add policy CMP0186 to provide compatibility. Issue: #26629 Fixes: #16899
6 lines
201 B
CMake
6 lines
201 B
CMake
file(GENERATE OUTPUT "generated.txt" CONTENT "
|
|
$<LIST:TRANSFORM,0000;1001;0002,REPLACE,^0,>
|
|
$<LIST:TRANSFORM,0000;1001;0002,REPLACE,^(a|0),x>
|
|
$<LIST:TRANSFORM,0000;1001;0002,REPLACE,(1|^)0,x>
|
|
")
|