53
I read though HERE, yet I still don't understand the syntax of the qmake CONFIG variable. for example, if I have the following CONFIG settings in my .pro file:
CONFIG(debug, debug|release) {
message("debug mode")
}else {
message("release mode")
}
then, when running qmake, the following will be displayed in the Compile Output in Qt-Creator:
Project MESSAGE: debug mode
Project MESSAGE: debug mode
Project MESSAGE: release mode
knowing that I am building my project in a "debug mode", then my questions are:
- why not showing the "debug mode" message only ? and why not showing it just once ?
- Then, since I am building in a "debug mode", why the message "Project MESSAGE: release mode" is displayed ?
- Exactly, what the syntax: CONFIG(debug, debug|release) really means? does it means that build in a debug mode, then again build in a debug mode and lastly build in a release mode ? I know that these brackets "{}" means a scope (old link was died, recommend scope) but how qmake interpret what is inside these brackets "()" ?