[Cmake] Removing a cache entry? Multiple MACRO definitions?

Andy Cedilnik andy.cedilnik at kitware.com
Fri, 02 Jan 2004 15:52:29 -0500


Hi Amitha,

On Fri, 2004-01-02 at 15:46, Amitha Perera wrote:
> > cmake -DCMAKE_RERUN_TRY_COMPILES=1 .
> That is a good thing to have on all the CHECK* macros.

Next time when I have couple of extra hours... :)

> However, it seems that deleting a variable from the cache is a missing
> feature. Following existing syntax, perhaps
> 
>   SET( VAR CACHE TYPE "doc string )
> 
> should delete the variable from the cache, while
> 
>   SET( VAR "" CACHE TYPE "doc string )
> 
> will have the current behaviour of setting the cache entry to an empty string.

There is REMOVE:

REMOVE(VAR VALUE VALUE ...)

This right now removes value from the variable if the variable is a
list. There could be another signature of REMOVE:

REMOVE(VAR CACHE)

			Andy