[CMake] Putting # character in the custom_command arguments

Pau Garcia i Quiles pgquiles at elpauer.org
Sat Jun 2 15:53:58 EDT 2007


Hello,

Have you tried to escape it with '\'?

grep '\#define' somefile | sed -e 's/\$//g' > someotherfile

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)



Quoting Filip Brcic <brcha at users.sourceforge.net>:

> Hi,
>
> I have trouble with putting the # character into my custom command. What I
> want to achieve is:
>
> grep '#define' somefile | sed -e 's/\$//g' > someotherfile
>
> The problem is the character # that is getting treated as the start of the
> comment. Is there any way to put the # character into the command line of my
> custom command? If not, I will do what I do now - make a shell script and
> just execute it from cmake. But I would prefer if I could avoid that script
> and keep the commands in the makefiles (CMakeLists that is).
>
> Thank you,
> Filip Brcic
>
> --
> Filip Brcic <brcha at users.sourceforge.net>
> WWWeb: http://purl.org/NET/brcha/home/
> Jabber: brcha at kdetalk.net
> Jabber: brcha at elitesecurity.org
> Jabber: fbrcic at gmail.com
> ICQ# 40994923
> Yahoo! brcha
> MSN: brcha at users.sourceforge.net
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>




More information about the CMake mailing list