Re: qmake | .pro and -config
Both release and debug can be in CONFIG at the same time, and the last one wins (put CONFIG in a message to see the default). You want to use the CONFIG() function:
Code:
CONFIG(debug, debug|release) {
message("debug")
}
CONFIG(release, debug|release) {
message("release")
}
and then:
Code:
$ qmake test.pro
Project MESSAGE: release
$ qmake CONFIG+=debug test.pro
Project MESSAGE: debug
$ qmake CONFIG+=release test.pro
Project MESSAGE: release
Re: qmake | .pro and -config
yeah, thanks, I found that. I just don't understand purpose of running both. What is that for then ?