-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Sep 16, 2006 at 01:39:57PM -0700, Alan W. Irwin wrote: > if(cond1) > block of statements > elseif(cond2) > block of statements <snip> > elseif(condn) > block of statements > else(cond1) > block of statements > endif(cond1) > > original proposal for all other languages. So my order of preference is (1) > my original proposal, (2) the status quo, and (last) the alternative > proposal you seem to be advocating.
I'm new to cmake but I think the addition of an elseif() option would be extremely useful. Alan's proposed syntax seems optimal to me provided it can be combined with the CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS option (that someone else pointed out on here). Requiring the user to specify "else(cond1)" and "endif(cond1)" may prevent a few mistakes but it also gets kinda annoying as conditionals get longer or change. - -- Philip Lowman Simulation Development Engineer, Modeling and Simulation Technology General Dynamics Land Systems http://www.gdls.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFDeyUe0tOktX6RKkRAnwtAJ9lFtxuIsDP4/dHLslj3jrOGW3O0ACdGQX+ 6D+ipIVTmh7EywNSJX0pX2c= =XToe -----END PGP SIGNATURE----- _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
