On Wed, Sep 8, 2010 at 3:43 AM, Diablo 666 <span dir="ltr"><<a href="mailto:thediablo666@hotmail.de">thediablo666@hotmail.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
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>                                            </div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><div><br></div><br><div>"cmake" configures exactly once and generates at the end of that configure, regardless of any "now new" options or settings.</div>
<div><br></div><div>If you run it again, it will do the same again, and in your case, you should see the "off" message on the 2nd run.</div><div><br></div>