[Qt-creator] qmake debug release conditional builds
André Pönitz
andre.poenitz at nokia.com
Mon Nov 9 13:07:15 CET 2009
On Monday 09 November 2009 21:56:59 ext paulo wrote:
> Hi,
>
> I would like some help on this issue.
>
> Apparently using the debug directly wont work, but when I use:
> CONFIG(debug, debug|release) {
> CONFIG(release, debug|release) {
> warning("release set with debug! Ignoring release.")
> }
> warning("Building debug.")
> } else {
> warning("Building release.")
> }
>
> it wont matter if I'm building for release or, because I'll get always:
>
> Project WARNING: Building release.
>
> So, what's the right way to do this?
The code you show is the right way to do this. If you get 'Building
release' twice there's
I am afraid you'll need to show a bit more context, at least all the
CONFIG settings in your .pro file and the qmake command line.
Andre'
More information about the Qt-creator-old
mailing list