[CMake] syntax error?

Brad King brad.king at kitware.com
Thu Aug 15 09:17:00 EDT 2013


On 08/15/2013 09:09 AM, Brad King wrote:
> Fixed and test added:
> 
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9040ec91

Actually another side effect of the previous behavior that is
good to fix is in a case like this:

 message(STATUS a # oops, forgot close paren
 message(STATUS b)

With the missing paren the next line's "message(" looks like an
argument to the first message(... call and CMake warns that the
paren is not separated.  With many lines after the missing paren
it causes a lot of warnings to appear before the actual error
message about the missing ")".  That is distracting so it is
better to tolerate left parens not separated.

-Brad


More information about the CMake mailing list