<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>> 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> SET (FOOBAR ON CACHE BOOL "bla" FORCE)<br> SET (BLA ON CACHE BOOL "foobar")<br> UNSET (FOO CACHE)<br> MESSAGE (STATUS "on")<br>ELSE()<br> SET (FOOBAR OFF CACHE BOOL "bla" FORCE)<br> UNSET (BLA CACHE)<br> SET (FOO ON CACHE BOOL "barfoo")<br> MESSAGE (STATUS "off")<br>ENDIF(NOT FOOBAR)<br><br><br>Andreas<br>                                            </body>
</html>