MantisBT - CMake
View Issue Details
0011220CMakeCMakepublic2010-09-10 11:542016-06-10 14:31
David Doria 
Kitware Robot 
normalfeaturealways
closedmoved 
CMake-2-8 
 
0011220: Configure and generate in one step from GUIs
Add a button to the GUIs (ccmake and Windows GUI) to configure and generate in one step (rather than having to press 'c', 'c', then 'g').

From a recent discussion on the mailing list (titled "Auto re-configuring until cache stops changing"), it has been decided that this functionality should exist.

The plan is:
- Add this functionality to Next immediately after the 2.8.3 release
- Have it ready for the 2.8.4 release

A related issue that may no longer be relevant is the 'g for generate' text is not visible at all in ccmake until it is available. It would be nice to have more of an equivalent to the "greyed out" generate button that is in the Windows GUI that lets the user know at least that there is a pending step, it is just not available yet until another 'c for configure' is performed.
No tags attached.
Issue History
2010-09-10 11:54David DoriaNew Issue
2010-09-10 12:04David ColeStatusnew => assigned
2010-09-10 12:04David ColeAssigned To => David Cole
2010-12-17 07:49David ColeNote Added: 0024226
2010-12-17 07:52David DoriaNote Added: 0024227
2010-12-17 07:52David DoriaNote Edited: 0024227bug_revision_view_page.php?bugnote_id=24227#r57
2010-12-17 08:39David ColeNote Added: 0024229
2010-12-17 08:42David DoriaNote Added: 0024230
2010-12-17 17:56David ColeAssigned ToDavid Cole => Clinton Stimpson
2011-01-01 20:39Clinton StimpsonAssigned ToClinton Stimpson => David Cole
2011-01-01 20:40Clinton StimpsonNote Added: 0024353
2011-01-05 12:03David ColeTarget Version => CMake 2.8.4
2011-01-07 16:42David ColeNote Added: 0024518
2011-01-10 15:29David ColeNote Added: 0024556
2011-01-10 15:29David ColeTarget VersionCMake 2.8.4 =>
2011-10-25 22:25David ColeStatusassigned => backlog
2011-10-25 22:26David ColeAssigned ToDavid Cole =>
2016-06-10 14:28Kitware RobotNote Added: 0041744
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0024226)
David Cole   
2010-12-17 07:49   
I don't think we need to add a button to accomplish the goal here. I think we should just enable generate using the same logic that is used to enable configure, and then, if necessary, when the user chooses generate, do a configure first followed by the generate.
(0024227)
David Doria   
2010-12-17 07:52   
"Configure" is always enabled though, right? So "Generate" would also be always enabled? If so, this is perfect.

(0024229)
David Cole   
2010-12-17 08:39   
Configure is always *enabled* -- but when the configure is running, the GUI button in cmake-gui changes to a "Stop" button so you can cancel it before it's done. Perhaps Generate should be grayed out while configure/generate is occurring so that only the "Stop" button is enabled while processing.

Also, when you first choose configure, you may have to say yes to the "create directory" question, and you may have to choose a generator if this is your very first configure in that build dir, so both of those would also have to be activated on-demand from the "one-click to Generate" scenario...
(0024230)
David Doria   
2010-12-17 08:42   
Oh I see what you mean - only disable the Generate button when you aren't supposed to be clicking anything (i.e. when something is happening - configuring, etc). Of course you'll still have to answer "first time questions", that is fine.

Sounds like a plan :)
(0024353)
Clinton Stimpson   
2011-01-01 20:40   
Can someone do ccmake?
(0024518)
David Cole   
2011-01-07 16:42   
cmake-gui now has this behavior as of this commit:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3f158c6d [^]
(0024556)
David Cole   
2011-01-10 15:29   
cmake-gui is the more important piece of this issue.... and that part will make it into CMake 2.8.4.

But for ccmake, we'll have to defer that until next time. We're out of time for CMake 2.8.4.

If anybody monitoring this issue would like to provide a patch for ccmake functionality to match the new cmake-gui "generate in one click" behavior, that would be most welcome.

Unsetting the target version field ... more later.
(0041744)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.