[CMake] a backwards compatible language simplification

Filipe Sousa filipe at ipb.pt
Fri May 19 15:37:52 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:

What about ENDMACRO?

> 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...
> 
> Ken

- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEbh6QbQdNYqwwwCwRAsNfAJ0f+LMOVKt3dWC6Ifzzg5j0vWPczgCgnKyF
952YdiTtzU7qyi3jmsqyuEs=
=Ly+R
-----END PGP SIGNATURE-----


More information about the CMake mailing list