string
http://man.hubwiz.com › commandSearch and Replace string(FIND <string> <substring> <out-var> [. ... Note that two backslashes ( \\1 ) are required in CMake code to get a backslash through ...
string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpThe string (FIND) subcommand treats all strings as ASCII-only characters. The index stored in <output_variable> will also be counted in bytes, so strings containing multi-byte characters may lead to unexpected results. string (REPLACE <match_string> <replace_string> <output_variable> <input> [<input>...])
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.