[Qt-interest] Multiple qmake messages
Sean Harmer
sean.harmer at maps-technology.com
Sun Sep 27 15:27:51 CEST 2009
Michael Bieber wrote:
>> Because qmake parses the pro-file more than once.
>> One initial, one for debug and one for release configuration iirc.
>>
>
> I thought something along those lines, but this should allow more
> control, shouldn't it?
>
It does. Try a constuct like this:
message(Message A - Printed 3 times)
build_pass {
message(Message B - Printed 2 times)
CONFIG(debug, debug|release){
message(Message C - Printed 1 time)
}
CONFIG(release, debug|release){
message(Message D - Printed 1 time)
}
}
We use type of structure all the time to set different settings (output
dir, ui dir etc.) for debug and release builds.
HTH,
Sean
More information about the Qt-interest-old
mailing list