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

CMake error when finding qttools tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.9.2
    • 6.9
    • Build System: CMake
    • None
    • 00b28640a (6.9)

    Description

      Using the following CMake code

      cmake_minimum_required(VERSION 3.25)
      
      find_package(Qt6Tools CONFIG REQUIRED)
      find_package(Qt6 COMPONENTS ToolsTools CONFIG REQUIRED) 

      fails with

      CMake Error at /home/nico/kde/usr/lib64/cmake/Qt6/Qt6Config.cmake:222 (get_target_property):
      
        get_target_property() called with non-existent target "Qt6::ToolsTools".
      
      Call Stack (most recent call first):
      
        CMakeLists.txt:4 (find_package)
      

      but it was working until very recently.

      Tested with current 6.9 branch (qtbase b4ac56aa3a7d2c9536e6c8bc816939a2a36b5493)

      Bisect suggests https://codereview.qt-project.org/c/qt/qtbase/+/647196 causes this.

       

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes