new cmake Qt3 project template - why isn't the project opened after it has been created ?
jens.dagerbo at swipnet.se
Mon Apr 24 20:34:07 UTC 2006
On Monday 24 April 2006 18:23, Richard Dale wrote:
> On Monday 24 April 2006 20:23, Jens Dagerbo wrote:
> > The problem is that there is no project file to open when KDevelop
> > attempts to do so.
> > See parts/appwizard/appwizarddlg.cpp, lines 682-686:
> > The "cmake ./ -GKDevelop3" command is forked off before we in the next
> > statement attempt to open the project file. But CMake isn't done creating
> > it yet.
> > I see no easy way to fix this, except to rewrite AppWizard to be able to
> > wait for commands to finish. (Refactoring AppWizard is a good idea in
> > general.)
> For the Rails project template I couldn't see any way to make the AppWizard
> run a shell command - is that possible? So on project open, I just checked
> if the project was there, and if not it runs a 'rails <project dir>'
> command to create it.
> -- Richard
It's possible. (Debatable if it should be, but it is.)
Command=cmake ./ -GKDevelop3
From a quick glance at the code it seems it is only possible to issue ONE such
command. If a .kdevtemplate file has more than one 'finishcmd' entry, I think
the last will be the one executed.
More information about the KDevelop-devel