string(REGEX REPLACE): Clarify documentation of escaping in replacement expression
Given the following cmakeError.cmake:
set(errorPath "d:/test")
string(REGEX REPLACE ":?([a-zA-Z]):" "\\1\\\\:" REPLACED ${errorPath})
include(CMakePrintHelpers)
cmake_print_variables(REPLACED)
results in:
> cmake -P .\cmakeError.cmake
-- REPLACED="d\:/test"
> cmake --version
cmake version 3.29.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
>
it should be
d\\:/test
however
Edited by r