[CMake] Auto re-configuring until cache stops changing

Diablo 666 thediablo666 at hotmail.de
Wed Sep 8 03:43:03 EDT 2010


Hi,

> What I meant was that the curses and Qt UI's should behave more like 'cmake'.

What does cmake actually do? The following code runs into an infinite loop on
ccmake (like intended), but cmake seems to finish after the first pass (it just prints
out "on" once), though there is a newly introduced cache variable on every run.

SET (FOOBAR OFF CACHE BOOL "bla")
IF (NOT FOOBAR)
    SET (FOOBAR ON CACHE BOOL "bla" FORCE)
    SET (BLA ON CACHE BOOL "foobar")
    UNSET (FOO CACHE)
    MESSAGE (STATUS "on")
ELSE()
    SET (FOOBAR OFF CACHE BOOL "bla" FORCE)
    UNSET (BLA CACHE)
    SET (FOO ON CACHE BOOL "barfoo")
    MESSAGE (STATUS "off")
ENDIF(NOT FOOBAR)


Andreas
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100908/28955ade/attachment.htm>


More information about the CMake mailing list