[CMake] unusual strings

David Cole david.cole at kitware.com
Fri Oct 17 18:24:00 EDT 2008


CMake does not support "C" style string constants like that. It supports
escaping of a specific set of characters with the \ character.
\\ \" \n and \$ are all valid escape sequences.

I will have to look up in the source code to see what other valid escape
sequences there are, but octal strings are definitely not among them...


HTH,
David


On Fri, Oct 17, 2008 at 12:11 PM, Micha Renner <Micha.Renner at t-online.de>wrote:

> Hello,
>
> what is wrong with this command:
>
> SET(INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014
> \015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036
> \037 \177/")
>
> Resulting error:
> syntax error, unexpected cal_ERROR, expecting $end (127), when parsing
> string "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020
> \021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177/"
>
> I do not understand the message.
>
> Michael
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081017/a62549be/attachment.htm>


More information about the CMake mailing list