[Cmake] using # in a string

Stefan Schmidt Stefan.Schmidt at sophia.inria.fr
Mon May 5 12:20:39 EDT 2003


> If I'm not mistaken, "#" is only a comment delimiter at start of line,
> so any # which follows a non-space is not considered a comment delimiter.

I think it works everywhere in CMakeList code (but I think at least inside 
strings, it shouldn't). Tested with CMake 1.6.5 and some older 1.7 cvs 
version.
But thanks for pointing out the workaround by using STRING(ASCII 35 POUND).

Greetings,
Stefan



More information about the CMake mailing list