Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1263

Qt always configured as release if UseDebugLibraries is not set

    XMLWordPrintable

Details

    • 8b5d97df6 (dev)

    Description

      The change for QTVSADDINBUG-1237 causes Qt to always assume a release config if UseDebugLibraries is not set in the project.

      This is caused by the C++ defaults which are always included before the Qt defaults and set the value to false. As a consequence existing projects which relied on the Configuration value now switch from debug to release which for example disables Q_ASSERT.

      Microsoft.Cpp.Default.props:

           <UseDebugLibraries Condition="'$(UseDebugLibraries)' == ''">false</UseDebugLibraries>
      

       qt_defaults.props:

          <QtBuildConfig Condition="'$(UseDebugLibraries)' == 'true'">debug</QtBuildConfig>
          <QtBuildConfig Condition="'$(UseDebugLibraries)' == 'false'">release</QtBuildConfig>
          <QtBuildConfig Condition="'$(QtBuildConfig)' == '' AND
            ($(Configuration.ToLower().Contains('debug')))">debug</QtBuildConfig>
          <QtBuildConfig Condition="'$(QtBuildConfig)' == ''">release</QtBuildConfig>

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mecfc Miguel Costa
              anoymouserver anoymouserver
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes