<div dir="ltr"><div class="gmail_quote">On Thu, Aug 28, 2008 at 5:12 AM, Vandenbroucke Sander <span dir="ltr">&lt;<a href="mailto:Sander.Vandenbroucke@vandewiele.com">Sander.Vandenbroucke@vandewiele.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">&gt; -----Original Message-----<br>
&gt; From: Bill Hoffman [mailto:<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>]<br>
&gt; Sent: woensdag 27 augustus 2008 14:37<br>
&gt; To: Vandenbroucke Sander<br>
&gt; Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a>; Brad King<br>
&gt; Subject: Re: [CMake] re-config on make all<br>
&gt;<br>
&gt; Vandenbroucke Sander wrote:<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; Sometimes CMake re-configures my build tree when running make.<br>
&gt; &gt; Unfortunately CMake uses wrong options, I normally set those on the<br>
&gt; &gt; command line. This forces me to re-config &amp; rebuild my entire source<br>
&gt; &gt; tree. This is a bit annoying since, in most cases, this is not<br>
necessary<br>
&gt; &gt; and takes a long time.<br>
&gt; &gt;<br>
&gt; &gt; So here is my question: can I prevent the automatic reconfiguration<br>
and<br>
&gt; &gt; throw an error/warning so the user can do a manual reconfig?<br>
&gt; &gt;<br>
&gt;<br>
&gt; CMake should use the same options. &nbsp;Your options should have been<br>
stored<br>
&gt; in the cache.<br>
</div>You are right, those options are not cached.<br>
<div class="Ih2E3d"></div></blockquote><div><br></div><div>But Bill&#39;s point was that they *should* be cached. So the question is: why are your original command line -D options not saved in CMakeCache.txt...?</div><div>
<br></div><div>What version of CMake are you running?</div><div>(Send output of &#39;which cmake&#39; and &#39;cmake --version&#39;...)</div><div><br></div><div>What is your exact original command line for running CMake?</div>
<div><br></div></div></div>