[CMake] Some newbie questions

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Sat Nov 3 12:24:24 EDT 2007


On 11/3/07, Thomas Sharpless wrote:
> 1] How can a script delete variables, in particular from the cache?

Not sure if you can delete it... but you can reset it to some value
using SET(... CACHE ... FORCE).

For example, if I want to re-run FIND_LIBRARY(some_LIBRARY ...), then
I do the following to clear it then it gets called again:

SET(some_LIBRARY "NOTFOUND" CACHE FILEPATH "Cleared." FORCE)

--Miguel


More information about the CMake mailing list