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@cmake.org http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake