<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 8:56 PM, Matthew Woehlke <span dir="ltr"><<a href="mailto:matthew.woehlke@kitware.com" target="_blank">matthew.woehlke@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>On 2013-11-05 14:36, Alexander Neundorf wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I tried the following a few times in the past and noticed everytime that it<br>
does not work:<br>
$ cd src<br>
src/ $ mkdir build<br>
src/ $ cd build<br>
src/build/ $ cmake-gui -DSOME_VARIABLE=some_value ..<br>
<br>
I'd like that to work. Would it work with your proposal ?<br>
</blockquote>
<br></div>
Yes.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Once the cache is deleted in cmake-gui, I would expect that the values from<br>
the command line are also forgotten, also the -U values. Otherwise this cmake<br>
would remove the matching entries from every cache I load.<br>
</blockquote>
<br></div>
True. (But what if that's what you want?)<br></blockquote><div>Could you give me a use case where u actuall don't want this? As already stated are the command line parameters the "default" values. <br>If I dont' want to remove an entry by default I won't pass that parameter. <br>
</div><div>If I want to remove an entry (but not by default) I will do it with the gui itself - That's what the gui is for?<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The biggest problem is, what if you run cmake-gui without specifying a build directory? In that case, whatever comes up initially is as likely as not *not* the directory you want to apply options to.<br>
<br>
What about having an option (e.g. a combo box) when to apply command line options?<br>
<br>
- At startup (only initial / specified on command line build directory)<br>
- New projects (when no CMakeCache.txt exists yet, but also at startup)<br>
- Unconfigured projects (per my original proposal)<br>
- Always (i.e. when selecting a different build directory)<br>
<br>
The default could be 'new projects' if no build directory is specified on the command line (probably you are giving "common" rather than project specific options in this case), otherwise 'at startup' (more chance options are project specific).<span><font color="#888888"><br>
<br>
-- <br>
Matthew</font></span><div><div><br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers" target="_blank">http://public.kitware.com/cgi-<u></u>bin/mailman/listinfo/cmake-<u></u>developers</a><br>
</div></div></blockquote></div><br></div></div>