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

Finding individual modules fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0
    • Build System: CMake

    Description

      Finding the qtbase modules fails when not using find_package(Qt6 ...)

      Minimal test case:

      cmake_minimum_required(VERSION 3.16)
      project(test)
      find_package(Qt6Core)
      

      complains because /QtFeature.cmake cannot be found.

      The generated Qt6CoreConfig.cmake contains: include(${_qt_6_config_cmake_dir}/QtFeature.cmake)

      and _qt_6_config_cmake_dir is defined in Qt6Config.cmake which is not searched in this case.

       

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            cgiboudeaux Christophe Marin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes