[CMake] Status of escaped characters in cmake?
Brad King
brad.king at kitware.com
Tue Jul 26 16:46:24 EDT 2005
Chris Green wrote:
> I've hit another problem with escaped characters: I wish to do a custom
> command which calls perl with -e '<here-script>'. I'm still bashing
> around with it, but what I have so far appears to confuse perl with lots
> of escaped spaces that I didn't ask for.
You do not need the single quotes surrounding the here-script. It is
CMake's responsibility to pass the arguments on the generated command
line with proper escaping. Without the quotes the shell will expand one
level of escapes and perl will get the proper script. However, CMake
may not currently escape all text properly for all shells. I suggest
you configure the script into a file and then run perl on that file.
-Brad
More information about the CMake
mailing list