[CMake] Inconsistent parsing of bracket comments in command arguments

2017-05-04 Thread Volo Zyko
Hi, I've encountered the following behavior. Code like 'set(FOO#[[bar]] 1)' is parsed fine by cmake, but for the code 'set(FOO #[[bar]]1)' cmake reports: Syntax Error in cmake code at column 13 Argument not separated from preceding token by whitespace. Is this by design or just an

[CMake] Inconsistent parsing of bracket comments in command arguments

2017-04-28 Thread Volo Zyko
Hi, I've encountered the following behavior. Code like 'set(FOO#[[bar]] 1)' is parsed fine by cmake, but for the code 'set(FOO #[[bar]]1)' cmake reports: Syntax Error in cmake code at column 13 Argument not separated from preceding token by whitespace. Is this by design or just an