On 9/16/06, <b class="gmail_sendername">Filipe Sousa</b> &lt;<a href="mailto:filipe@ipb.pt">filipe@ipb.pt</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Not anymore. You can do<br>SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)<br>IF(cond1)<br>ELSE()<br>ENDIF()</blockquote><div><br>Wow, I never knew about that option.<br><br>I think adding adding an ELSEIF extension should not be a high priority, since the same thing can be accomplished with existing constructs, and it looks pretty decent and avoids indenting if that is your goal:
<br></div><br>SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)<br><br>IF(COND1)<br>&nbsp;&nbsp; block of statements<br>ELSE()<br>IF(COND2)<br>&nbsp;&nbsp; block of statements<br>ELSE()<br>IF(COND3)<br>&nbsp;&nbsp; block of statements<br>ENDIF()<br>ENDIF()<br>
ENDIF()<br><br>(Sure there are a lot of ENDIFs, but I can live with that.)<br><br>Phillip Hellewell<br></div>