[CMake] remove variable from cache?

kitts kitts.mailinglists at gmail.com
Fri Apr 20 23:18:17 EDT 2007


On Saturday 21 Apr 2007 3:52:02 am Roland Koebler wrote:
> is there any way to remove a variable from the cache, or alternatively
> don't show a cached value in ccmake?
> or can I tell FIND_PATH not to create a cache entry?
>
> (this would be i.e. useful in some FindXXX.cmake files, where
>  several FIND_PATHs are used and all found paths then are
>  combined in XXX_INCLUDE_DIRS. and it's ugly if both
>  XXX_INCLUDE_DIRS and all the single paths appear in
>  ccmake.)

When using the SET() function, mark the variable as "INTERNAL" and it will not 
appear in the cmake GUI.
-- 
Cheers!
kitts


More information about the CMake mailing list