Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CONFIG(release, debug|release) works, but where is "release" defined
Forum Updated to NodeBB v4.3 + New Features

CONFIG(release, debug|release) works, but where is "release" defined

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by
    #1

    In a test project

    for debug: qmake.exe TestQt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    for release: qmake.exe TestQt.pro -spec win32-msvc

    The qmake command below works as expected:

    CONFIG(debug, debug|release) {
        message(debug build)
    }
    
    CONFIG(release, debug|release) {
        message(release build)
    }
    

    but where is release defined?

    aha_1980A 1 Reply Last reply
    0
    • jronaldJ jronald

      In a test project

      for debug: qmake.exe TestQt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
      for release: qmake.exe TestQt.pro -spec win32-msvc

      The qmake command below works as expected:

      CONFIG(debug, debug|release) {
          message(debug build)
      }
      
      CONFIG(release, debug|release) {
          message(release build)
      }
      

      but where is release defined?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @jronald, it's defined nowhere at the moment. You call qmake with CONFIG+=release for that.

      Regards

      Qt has to stay free or it will die.

      jronaldJ 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @jronald, it's defined nowhere at the moment. You call qmake with CONFIG+=release for that.

        Regards

        jronaldJ Offline
        jronaldJ Offline
        jronald
        wrote on last edited by
        #3

        @aha_1980 but the qmake command below works, why?

        CONFIG(release, debug|release) {
            message(release build)
        }
        
        jsulmJ 1 Reply Last reply
        0
        • jronaldJ jronald

          @aha_1980 but the qmake command below works, why?

          CONFIG(release, debug|release) {
              message(release build)
          }
          
          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jronald I guess release is the default...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          jronaldJ 1 Reply Last reply
          1
          • jsulmJ jsulm

            @jronald I guess release is the default...

            jronaldJ Offline
            jronaldJ Offline
            jronald
            wrote on last edited by
            #5

            @jsulm said in CONFIG(release, debug|release) works, but where is "release" defined:

            me too, can't be sure

            jsulmJ 1 Reply Last reply
            0
            • jronaldJ jronald

              @jsulm said in CONFIG(release, debug|release) works, but where is "release" defined:

              me too, can't be sure

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jronald If you're not sure then simply pass always release or debug :-)

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              jronaldJ 1 Reply Last reply
              0
              • jsulmJ jsulm

                @jronald If you're not sure then simply pass always release or debug :-)

                jronaldJ Offline
                jronaldJ Offline
                jronald
                wrote on last edited by
                #7

                @jsulm It works as expected, just want to know why.

                K 1 Reply Last reply
                0
                • jronaldJ jronald

                  @jsulm It works as expected, just want to know why.

                  K Offline
                  K Offline
                  kenchan
                  wrote on last edited by
                  #8

                  @jronald
                  if you are using Qt Creator to build it comes from the current build setting in QtCreator.
                  You set that in the projects tab using the "edit build configuration" list box. or the mode setting flyout at the bottom left of the main window.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved