[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] Regarding option for regenerating CMakeCache everytime we do cmake
From: Marcel Loose <loose () astron ! nl>
Date: 2014-03-24 11:14:43
Message-ID: 533013A3.4020603 () astron ! nl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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.
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 24/03/14 11:01, Devyani Godbole
wrote:<br>
</div>
<blockquote
cite="mid:CAB4AWuf3UUfK=WAGrwb-FHAATHLN4bbyZ=Ye8a4DdryDuePZJg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hi ,<br>
</div>
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. <br>
<br>
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.<br>
<br>
</div>
Is there any way by which I can do this?<br>
<br clear="all">
<div>
<div>
<div>
<div><br>
-- <br>
-- <font face="georgia, serif" size="4">Devyani S.
Godbole</font>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
Hi Devyani,<br>
<br>
You can use the -U option to remove WITH_DATE from the cache: cmake
-UWITH_DATE [whatever options you want to pass to cmake].<br>
<br>
Other than that, if you want to rebuild the cache, why not simply
delete it before you run cmake?<br>
<br>
Regards,<br>
Marcel Loose.<br>
<br>
<br>
<br>
</body>
</html>
["loose.vcf" (text/x-vcard)]
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic