Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32891

find_package(Qt6 ... OPTONAL_COMPONENTS) brings up MaintenanceTool

    XMLWordPrintable

Details

    • b50e6f57c (17.0)

    Description

      Trying to open a project which looks for optional Qt6 components with OPTIONAL_COMPONENTS brings up the MaintenanceTool.

      This is due to maintenance_tool_provider treating OPTIONAL_COMPONENTS keyword as a (missing) Qt module.

      Example project:

      cmake_minimum_required(VERSION 3.19)
      project(tst_optional_components LANGUAGES CXX)
      
      find_package(Qt6 6.5 REQUIRED COMPONENTS Core
                  OPTIONAL_COMPONENTS Pdf)
      
      qt_standard_project_setup()
      
      qt_add_executable(tst_optional_components
          main.cpp
      )
      

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes