<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>&gt; What I meant was that the curses and Qt UI's should behave more like 'cmake'.<br><br>What does cmake actually do? The following code runs into an infinite loop on<br>ccmake (like intended), but cmake seems to finish after the first pass (it just prints<br>out "on" once), though there is a newly introduced cache variable on every run.<br><br>SET (FOOBAR OFF CACHE BOOL "bla")<br>IF (NOT FOOBAR)<br>&nbsp;&nbsp;&nbsp; SET (FOOBAR ON CACHE BOOL "bla" FORCE)<br>&nbsp;&nbsp;&nbsp; SET (BLA ON CACHE BOOL "foobar")<br>&nbsp;&nbsp;&nbsp; UNSET (FOO CACHE)<br>&nbsp;&nbsp;&nbsp; MESSAGE (STATUS "on")<br>ELSE()<br>&nbsp;&nbsp;&nbsp; SET (FOOBAR OFF CACHE BOOL "bla" FORCE)<br>&nbsp;&nbsp;&nbsp; UNSET (BLA CACHE)<br>&nbsp;&nbsp;&nbsp; SET (FOO ON CACHE BOOL "barfoo")<br>&nbsp;&nbsp;&nbsp; MESSAGE (STATUS "off")<br>ENDIF(NOT FOOBAR)<br><br><br>Andreas<br>                                               </body>
</html>