string
http://man.hubwiz.com › commandstring(REGEX REPLACE <match-regex> <replace-expr> <out-var> <input>. ... Note that two backslashes ( \\1 ) are required in CMake code to get a backslash ...
CMake STRING REGEX REPLACE - Stack Overflow
stackoverflow.com › questions › 22638673Mar 25, 2014 · The command expects a regular expression, but you're passing a sed argument in. If you really want to replace all line-end characters with spaces, there's even no need for a regex at all. Just do this: string (REPLACE " " " " output $ {input}) Share. Follow this answer to receive notifications. answered Mar 25, 2014 at 15:14.
string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpstring (REGEX REPLACE <regular_expression> <replacement_expression> <output_variable> <input> [<input>...]) Match the <regular_expression> as many times as possible and substitute the <replacement_expression> for the match in the output. All <input> arguments are concatenated before matching.