[CMake] how to escape the $ dollar sign?

2008-01-15 Thread Christopher Lang
Hi, I am trying desperately to get the dollar sign ($) escaped properly in the following: ADD_CUSTOM_TARGET (read_potfiles_in ALL COMMAND grep -Ev '^\#|^\\[|^$' POTFILES.in > POTFILES.in.cmake WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) I searched everyt

Re: [CMake] how to escape the $ dollar sign?

2008-01-15 Thread Brandon Van Every
On Jan 15, 2008 7:59 AM, Christopher Lang <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying desperately to get the dollar sign ($) escaped properly in the > following: > > ADD_CUSTOM_TARGET (read_potfiles_in ALL > COMMAND grep -Ev '^\#|^\\[|^$' POTFILES.in > POTFILES.in.cmake > WOR

Re: [CMake] how to escape the $ dollar sign?

2008-01-15 Thread Christopher Lang
Brandon, a small breeze of fresh air in escape hell..., I figured it out. In fact it had not so much to do with cmake escape but with *make* $$ type of escape. Actually $$ did the trick... cheers Chris Am Dienstag 15 Januar 2008 20:21:39 schrieb Brandon Van Every: > On Jan 15, 2008 7:59 AM,

Re: [CMake] how to escape the $ dollar sign?

2008-01-15 Thread Alexander Neundorf
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,

Re: [CMake] how to escape the $ dollar sign?

2008-01-15 Thread Brandon Van Every
On Jan 15, 2008 7:04 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Tuesday 15 January 2008, Brandon Van Every wrote: > > > > 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 th