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

Mehdi Rabah mehdi.rabah at gmail.com
Mon Jul 2 08:39:56 EDT 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070702/51b2a9df/attachment.htm


More information about the CMake mailing list