Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133794

It's not possible to override CMAKE_CONFIGURATION_TYPES when configuring a qt repo against a -debug-and-release Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.3, 6.9.0 Beta3
    • Build System: CMake
    • None

    Description

      We hard-code a set(CMAKE_CONFIGURATION_TYPES CACHE FORCE) in lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake when configuring a -debug-and-release qtbase.

      Afterwards calling

      qt-configure-module.bat .. -- -DCMAKE_CONFIGURATION_TYPES=Release
      

      doesn't affect anything.

      This is different to how we treat single-config configuration, where an override is possible by passing -DCMAKE_BUILD_TYPE.

      We should consider fixing this, but care must be taken because touching code there is always prone due regressions due to multiple use cases (per-repo configures, top-level configure, standalone tests, standalone sql drivers project, user projects, mixing multi-config qt with single config qt repo or project etc).

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes