[cmake-developers] [CMake] Forwarding parameters to cmake through cmake-gui
Matthew Woehlke
matthew.woehlke at kitware.com
Tue Nov 5 15:40:16 EST 2013
On 2013-11-05 15:14, physhh . wrote:
> On Tue, Nov 5, 2013 at 8:56 PM, Matthew Woehlke wrote:
>> On 2013-11-05 14:36, Alexander Neundorf wrote:
>>> Once the cache is deleted in cmake-gui, I would expect that the
>>> values from the command line are also forgotten, also the -U
>>> values. Otherwise this cmake would remove the matching entries
>>> from every cache I load.
>>
>> True. (But what if that's what you want?)
>
> 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.
> If I dont' want to remove an entry by default I won't pass that parameter.
> 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?
The use case is invoking cmake-gui "by hand" from a command line for a
specific project (i.e. specifying the build directory also on the
command line).
As I see it, folks that are used to cmake/ccmake tend to want cmake-gui
to work more like that. Whereas folks that are used to doing everything
from GUI's and hardly if ever touch a command line want it to work like
we're suggesting. Both points of view are IMO valid (though I tend
towards greater sympathy for the latter in this case).
(Personally, I'd say I'm middle of the road; I use a CLI plenty¹ - and
TBH, ccmake much more than cmake-gui - but I (try to) understand and
respect the non-CLI use case.)
(¹ ...though not nearly as much as some people I know. I do prefer kwin
and kdevelop over ratpoison and vim/emacs, thank you ;-).)
--
Matthew
More information about the cmake-developers
mailing list