[CMake] Regarding option for regenerating CMakeCache everytime we do cmake
Marcel Loose
loose at astron.nl
Mon Mar 24 07:14:43 EDT 2014
On 24/03/14 11:01, Devyani Godbole wrote:
> Hi ,
> I am getting a problem wherein the if I add the flag say -DWITH_DATE=1
> and do a cmake I get it enabled. But now if I do not use this flag and
> again do cmake , it still remains DEFINED i.e. it is still present in
> CMakeCache.
>
> I do not want it to be DEFINED if I have not specified it in cmake
> command line. i.e. I want the CMakeCache to be rebuilt everytime I do
> a cmake.
>
> Is there any way by which I can do this?
>
>
> --
> -- Devyani S. Godbole
>
>
Hi Devyani,
You can use the -U option to remove WITH_DATE from the cache: cmake
-UWITH_DATE [whatever options you want to pass to cmake].
Other than that, if you want to rebuild the cache, why not simply delete
it before you run cmake?
Regards,
Marcel Loose.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140324/e78a35c0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loose.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140324/e78a35c0/attachment.vcf>
More information about the CMake
mailing list