[CMake] how to escape the $ dollar sign?
Christopher Lang
christopher.lang at acurana.de
Tue Jan 15 07:59:02 EST 2008
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 everything but did not find a solution to get that dollar sign
escaped.
The result always looks like this:
...
cd /home/chris/workspace/l2nl/po && grep -Ev '^#|^\[|^ POTFILES.in >
POTFILES.in.cmake
Escaping with signle or double \\ does not work.
any help is much appreciated!
Chris
cmake version 2.4-patch 7
http://www.acurana.de/
More information about the CMake
mailing list