Search code examples
qt-creatorqmake

QT-Creator: where should I see the output of the qMake variable: "message( string )"


I am working with qMake CONFIQ variable in Qt-creator. I would like to display a message for whether I am in the debug or in the release mode. So, I edited my .pro file as follow:

CONFIG(debug, debug|release){
    message("debug mode")
} else {
    message("release mode")
}

and according to THIS, the message "is output to the console and processing of the project file carries on". Till now, I am just guessing this "console" would be my Qt-Creator Application Output tab. if I am right, then something is wrong as I don't see any messages when I compile my project. if I am wrong, then where these messages should be displayed ?


Solution

  • You should see the messages on Compile Output tab. Please keep in mind that these messages are displayed when you run qmake and not when you compile your project.