[Qt-creator] qmake debug release conditional builds

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Sun Nov 8 17:50:04 CET 2009


On Mon, Nov 09, 2009 at 12:00:49AM +0000, paulo wrote:
> > Don't use 'debug' and 'release' scopes. It's almost never what you need.
> > Instead use:
> >
> > CONFIG(debug, debug|release) {
> > 	# That is the "debug" branch
> > 	TARGET = app.dbg
> > } else {
> > 	# That is the "release" branch
> > 	TARGET = app.bin
> > }
> 
> I was using that, but it has exactly the same effect.

Hard to believe.

> Besides, the qmake tutorial page "says" to use debug {}, which I find 
> much more elegant.

It says "... when 'debug' is already on the CONFIG line".  That's
different from "when you want a debug build".

As you noted, you might have both 'debug' and 'release' in CONFIG.

Andre'



More information about the Qt-creator-old mailing list