Re: [CMake] jokers (*) in cmake -E echo

2007-07-02 Thread Brandon Van Every
On 7/2/07, Mehdi Rabah <[EMAIL PROTECTED]> wrote: Hi everyone, I have really simple problem but I can't find the solution : ADD_CUSTOM_COMMAND( OUTPUT ${SPEC_FILE} COMMAND ${CMAKE_COMMAND} -E echo "/*" > echo.txt ) With this command, cmake generate, using VERBATIM or not, this text :

Re: [CMake] jokers (*) in cmake -E echo

2007-07-02 Thread Mehdi Rabah
Ok thank you very much. I did try with one slash, but it happened that sometime cmake need two in my case. On 7/2/07, James Bigler <[EMAIL PROTECTED]> wrote: Try adding some escape slashes: \ "\/\*" or "\\/\\*" I'm not sure how many escape slashes you need, since CMake tends to gobble them up

Re: [CMake] jokers (*) in cmake -E echo

2007-07-02 Thread James Bigler
Try adding some escape slashes: \ "\/\*" or "\\/\\*" I'm not sure how many escape slashes you need, since CMake tends to gobble them up (apply them) depending on what you are doing. James Mehdi Rabah wrote: Hi everyone, I have really simple problem but I can't find the solution : ADD_CUST

[CMake] jokers (*) in cmake -E echo

2007-07-02 Thread Mehdi Rabah
Hi everyone, I have really simple problem but I can't find the solution : ADD_CUSTOM_COMMAND( OUTPUT ${SPEC_FILE} COMMAND ${CMAKE_COMMAND} -E echo "/*" > echo.txt ) With this command, cmake generate, using VERBATIM or not, this text : /bin /boot /cdrom /dev /etc /home /initrd /initrd.im