[CMake] Removing unused variables from the cache

2006-10-19 Thread Peter Soetens
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 -- ___

Re: [CMake] Removing unused variables from the cache

2006-10-19 Thread Sylvain Benner
Hello, I don't know if this is possible but you can set your variable to an empty string. SET( SOME_OPTION "") Sylvain 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_

Re: [CMake] Removing unused variables from the cache

2006-10-19 Thread Brad King
Sylvain Benner wrote: > I don't know if this is possible but you can set your variable to an > empty string. > > SET( SOME_OPTION "") > >> Is it possible to remove variables from the cache ? For example: >> >> OPTION( BUILD_X "Descr" OFF ) >> >> IF ( BUILD_X ) >>SET( SOME_OPTION "Hello world"

Re: [CMake] Removing unused variables from the cache

2006-10-20 Thread Peter Soetens
Quoting Brad King <[EMAIL PROTECTED]>: If BUILD_X is on and SOME_OPTION is set by the user, then BUILD_X is turned off, and then back on the user may expect SOME_OPTION to have retained its value. You can convert it to an INTERNAL cache entry so that it does not show up in the GUI when it is no

Re: [CMake] Removing unused variables from the cache

2006-10-20 Thread Brad King
Peter Soetens wrote: > Quoting Brad King <[EMAIL PROTECTED]>: >> >> If BUILD_X is on and SOME_OPTION is set by the user, then BUILD_X is >> turned off, and then back on the user may expect SOME_OPTION to have >> retained its value. You can convert it to an INTERNAL cache entry so >> that it does n