[CMake] Fun with lists and execute_process

2014-09-02 Thread Dan Kegel
http://www.cmake.org/Wiki/CMake/Language_Syntax does explain about semicolons, strings, and lists, but the consequences are still kind of surprising. Newbies like me have to write little programs to feel our way towards an understanding of what works. For example, I wanted to pass a space-separat

Re: [CMake] cmake gives poor warning on missing double-quote?

2014-09-02 Thread David Cole via CMake
Yes, but the warning text could certainly mention a missing closing quote as a possible cause, and it could also avoid repeating itself infinitely... The first occurence should be enough to pinpoint the problem upon investigation. Presumably, Dan, this was followed by an error of some sort as

Re: [CMake] cmake gives poor warning on missing double-quote?

2014-09-02 Thread Jakub Zakrzewski
Hi, I don't think there's anything that can be done about it. CMake supports multi-line strings, what means that the parser cannot detect missing quote right away. In theory on such error the parser can be made to go back to opening quote and analyze the string to give a suggestion, but this i