
Originally Posted by
wysota
Wrong. You can always pass "CONFIG+=debug" (or other) as a commandline parameter to qmake, you don't need to change the project file.
Wrong way...
use qmake's "-config" switch instead if you really want to do it that way...
If you want to use debug_and_release then here is the way to go :
CONFIG(debug, debug|release) {
#debug specific code here
} else {
#release specific code here
}
CONFIG(debug, debug|release) {
#debug specific code here
} else {
#release specific code here
}
To copy to clipboard, switch view to plain text mode
And everything will be allright...
Bookmarks