[CMake] escaping!
Javier Gonzalez
javierggt at yahoo.com
Wed Dec 5 19:34:46 EST 2007
Hi all,
Is it possible to have a command like this?
ADD_CUSTOM_COMMAND(OUTPUT ${my_file}
...
COMMAND find . -name "*xml" > /dev/null
...
VERBATIM
)
I managed to get it working without the verbatim option but now I added
other things and it became a nightmare. I'm trying the verbatim option
under the assumption that it would make my life easier... oh well...
The following is a list of things I tried and the output (I have tried
other things and some of them give weird stuff)
in: find . -name "*xml" > /dev/null
out: find . -name *xml > /dev/null
in: find . -name \"*xml\" > /dev/null
out: find . -name \"*xml\" > /dev/null
in: find . -name \\"*xml\\" > /dev/null
out: find . -name \\\"*xml\\\" > /dev/null (??)
in: find . -name \\\"*xml\\\" > /dev/null
out: find . -name \\\"*xml\\\" > /dev/null
in: find . -name """*xml""" > /dev/null
out: find . -name *xml > /dev/null
in: find . -name \\*xml > /dev/null
out: find . -name \\*xml > /dev/null
in: find . -name \*xml > /dev/null
gives error
in: "find . -name \"*xml\" > /dev/null"
out: find\ .\ -name\ "*xml"\ >\ /dev/null
so? any idea?
Javier Gonzalez
p.s.: using cmake 2.4-patch 7 (is it fixed in a later version?)
More information about the CMake
mailing list