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

Mehdi Rabah mehdi.rabah at gmail.com
Mon Jul 2 09:07:14 EDT 2007


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 <bigler at cs.utah.edu> wrote:
>
> 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_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.img /initrd.img.old
> /lib
> > /local_home /lost+found /media /mnt /opt /proc /root /sbin /srv /sys
> /tmp
> > /usr /var /vmlinuz /vmlinuz.old
> >
> > What can I do to just echo  "/*" ?
> >
> > In command line, I can just type
> > cmake -E "/*"
> > instead of
> > cmake -E /*
> > but within a cmake file I don't know how to do it.
> >
> > Thanks for any help
> >
> > Regards,
> > --
> > Mehdi Rabah
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070702/8f788280/attachment.html


More information about the CMake mailing list