[CMake] list quote shennanigans
Brandon Van Every
bvanevery at gmail.com
Sun Jul 22 12:34:44 EDT 2007
On 7/22/07, Brandon Van Every <bvanevery at gmail.com> wrote:
> In my code, FILE(...) followed by
> STRING(REGEX ...) is destroying the semicolons in the file. I need to
> get to the bottom of that.
I found the problem. I was doing
FILE(WRITE CMakeLists.txt ${stream})
instead of
FILE(WRITE CMakeLists.txt "${stream}")
I ***HATE*** CMake list quote shennanigans. It's really dangerous.
The behavior isn't even documented anywhere, you learn lists vs.
strings by osmosis. There's got to be a safer way to do this stuff.
I'm not thinking of a better interface right now though. Someone lend
brainpower.
Cheers,
Brandon Van Every
More information about the CMake
mailing list