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

CMake error for non-existing Qt components points to /maintenance_tool_provider.cmake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 17.0.0-beta1
    • None

    Description

      When looking up a non-existing Qt6 component, the error that is now displayed in Qt Creator 17 does not show the original CMakeFile.txt line that causes this, but instead point to /maintenance_tool_provider.cmake:

      find_package(Qt6 REQUIRED COMPONENTS DoesNotExist)
      

      Will result in

      [cmake] CMake Error at build/Qt_6_9_0_for_macOS-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:261 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /Users/kkoehne/Qt/6.9.0/macos/lib/cmake/Qt6/Qt6Config.cmake
      [cmake] 
      [cmake]   but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      [...]
      

      Is this not helpful for the user, who now has to search manually in the project for the find_package() call.

      Is there a way to tweak the error message to actually point to the original find_package() line?

      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:

              Gerrit Reviews

                There are no open Gerrit changes