[CMake] How to clear variable.

klaas.holwerda ngi at klaasholwerda.nl
Fri Oct 10 15:57:20 EDT 2008


Hi,

The find_path documentation says:

If the file in a directory is found the result is stored in the variable 
and the search will not be repeated unless the variable is cleared.

So how do i clear a variable?

The only thing i can work out is:

SET( VAR VAR-NOT-FOUND CACHE INTERNAL "" )

Is that really the way??

Thanks,

Klaas


More information about the CMake mailing list