<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=144520814-09082002><FONT size=2>I may not be understanding how 
CMake handles IF/ELSE/ENDIF constructs. Or this could </FONT></SPAN></DIV>
<DIV><SPAN class=144520814-09082002><FONT size=2>be a bug.  The following 
CMakeLists.txt file outputs both "Not Bar" and "Bar" indicating to 
</FONT></SPAN></DIV>
<DIV><SPAN class=144520814-09082002><FONT size=2>me that both the IF clause and 
the ELSE clause are being executed.  If I remove the 
SET</FONT></SPAN></DIV>
<DIV><SPAN class=144520814-09082002><FONT size=2>command then the ELSE clause is 
not executed.</FONT></SPAN></DIV>
<DIV><SPAN class=144520814-09082002><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144520814-09082002><FONT size=2>What "should" happen in this 
case?</FONT></SPAN></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>PROJECT(FOO)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>IF (NOT BAR)<BR>   MESSAGE("Not 
Bar")<BR>   SET(BAR "garf")<BR>ELSE (NOT BAR)<BR>   
MESSAGE("Bar")<BR>ENDIF (NOT BAR)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV class=Section1>
<P class=MsoNormal> <?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></P>
<P style="MARGIN: 0in 0in 0pt"><B><SPAN 
style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim Miller</SPAN></B> 
<BR><B><I><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Visualization & 
Computer Vision</SPAN></EM><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE 
Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, Schenectady NY 
12301</EM><BR><BR></SPAN></I><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue"><A 
href="mailto:millerjv@research.ge.com">millerjv@research.ge.com</A></SPAN></U></EM></P>
<P style="MARGIN: 0in 0in 0pt"><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue">james.miller@research.ge.com</SPAN></U></EM><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) 387-4005, Dial 
Comm: 8*833-4005, </SPAN></I><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: (518) 505-7065, 
Fax: (518) 387-6981</SPAN></I> </P>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV> </DIV></BODY></HTML>