[CMake] a backwards compatible language simplification

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Thu May 18 16:37:08 EDT 2006


On Thursday 18 May 2006 19:56, Ken Martin wrote:
> I incorporated some changes from Lloyd's patch and committed it to CVS.
> Basically if a project sets CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS on then you
> can leave off the arguments for the endif endwhile, else and endforeach
> commands. For example:
>
> if (FOO AND BAR)
> else ()
> endif ()
>
> The parenthesis are still required. I'm not sure what everyone's thoughts
> are on this but there it is...
>

That's nice already - changing 3 times the conditions in a if-else-endif 
construct was quite boring :-)

Do you plan to also remove the parenthesis in a future release ?

Gaetan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060518/ceabd3de/attachment-0001.pgp


More information about the CMake mailing list