[CMake] how to escape the $ dollar sign?
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Jan 15 19:04:27 EST 2008
On Tuesday 15 January 2008, Brandon Van Every wrote:
...
> In a regex, outside of [] you need \\$
> In a regex, inside of [] you do not need anything. [$] is fine.
> In a non-regex string, in front of a curly bracket you need \${
> set(blah "whatever but \${do_not_evaluate}")
> In a regex string, in front of a curly bracket you need \\\${
> string(REGEX REPLACE
> ".*whatever but \\\${do not evaluate}"
>
> I am still too lazy to write this up on
> http://www.cmake.org/Wiki/CMake:VariablesListsStrings
> I think because I perceive this wiki page as a bit buried in the shuffle.
Oh, come on.
Can't you come up with a better excuse ? ;-)
It would be really nice if you could help with the wiki page.
Alex
More information about the CMake
mailing list