[CMake] Patch: Add NO_CACHE option to find_xxx commands

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Mon Jul 7 14:04:53 EDT 2008


"Miguel A. Figueroa-Villanueva" <miguelf at ieee.org>
writes:

>>> I would like to propose the addition of a NO_CACHE keyword to the
>>> find_xxx commands that would treat <VAR> as a non-cached variable.
>>
>> Better wolution would be the equivalent of autoconf's './config.status
>> --recheck', e.g. reinvoking cmake with empty cache but with original
>> configuration options.
>
> This is not what we want. We want to keep the cache variables since
> the user might have changed it in the gui.

No; it is exactly what you want.  Just store the original configuration
(e.g. 'cmake' commandline or items entered into the GUI by user) somewhere
and rerun 'cmake' on it with an empty cache.


Enrico



More information about the CMake mailing list