[cmake-developers] [CMake] Forwarding parameters to cmake through cmake-gui

Alexander Neundorf neundorf at kde.org
Tue Nov 5 17:07:57 EST 2013


On Tuesday 05 November 2013, Matthew Woehlke wrote:
> On 2013-11-05 14:36, Alexander Neundorf wrote:
> > I tried the following a few times in the past and noticed everytime that
> > it does not work:
> > $ cd src
> > src/ $ mkdir build
> > src/ $ cd build
> > src/build/ $ cmake-gui -DSOME_VARIABLE=some_value ..
> > 
> > I'd like that to work. Would it work with your proposal ?
> 
> Yes.
> 
> > 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?)

I think I would expect -U only to work if a cache is loaded initially, i.e. if 
cmake-gui is started with an existing build dir.

Alex



More information about the cmake-developers mailing list