<div dir="ltr"><div>+1<br><br>I like the idea of the ["Apply Command Line Parameters" button appear whenever -Dvar=value parameters were passed.] <br><br></div><div>Would also be nice if parameter like "-G" ... could also be considered for the first configuration. Within some of our project, I envision user downloading a "bat" script named "BuildMyProjectWithVS2008.bat" that would pass all the expected option to cmake-gui. Aware the same could be done directly with cmake or ccmake .. but visual studio user often expects UI with buttons<br>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 3:33 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/06/2013 02:55 PM, physhh . wrote:<br>
> How should we proceed? I think Mathew understood what's my problem.<br>
<br>
</div>This thread has covered use cases in which it makes sense to apply<br>
(or not apply) command-line parameters in cmake-gui for various<br>
cases. No one automatic behavior is going to satisfy everyone.<br>
<br>
Nobody picked up on Matthew's suggestion here:<br>
<br>
<a href="http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/8553/focus=8553" target="_blank">http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/8553/focus=8553</a><br>
<br>
which was:<br>
<div class="im"><br>
On 11/05/2013 02:56 PM, Matthew Woehlke wrote:<br>
> What about having an option (e.g. a combo box) when to apply command<br>
> 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<br>
> on the command line (probably you are giving "common" rather than<br>
> project specific options in this case), otherwise 'at startup' (more<br>
> chance options are project specific).<br>
<br>
</div>Another approach is to have an "Apply Command Line Parameters"<br>
button appear whenever -Dvar=value parameters were passed.<br>
This will allow users to put their command-line options into<br>
effect at any time without changing any settings. The button<br>
should not pay attention to command-line options that set the<br>
source/build trees.<br>
<br>
If that is not sufficient then Matthew's proposed combo box<br>
can be used to select when command-line parameters are applied<br>
automatically.<br>
<div class="im"><br>
-Brad<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
</div><div class="im">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/CMake_FAQ</a><br>
<br>
</div><div class="im">Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
</div><div class="im">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
</div><div class="im">Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br>
</div>