[CMake] Removing unused variables from the cache

Peter Soetens peter.soetens at fmtc.be
Thu Oct 19 07:25:27 EDT 2006


Hi,

Is it possible to remove variables from the cache ? For example:

OPTION( BUILD_X "Descr" OFF )

IF ( BUILD_X )
    SET( SOME_OPTION "Hello world" CACHE)
ELSEIF (BUILD_X)
    UNSET( SOME_OPTION )
ENDIF ( BUILD_X )

Peter
-- 
Peter Soetens -- FMTC -- <http://www.fmtc.be>


More information about the CMake mailing list