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

CMake failbuild tests like test_add_resource_options sometimes don't find Qt6CoreTools.cmake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.0
    • Build System: CMake

    Description

      Test: qtbase/tests/auto/cmake/test_add_resource_options/CMakeLists.txt

      On Andreas's Linux machine, the transitive call of find_package(Qt6CoreTools) done by find_package(Qt6Core) fails to find Tools.

      That's because the HINTS arg we pass is not transitive.

      find_package(Qt6Core REQUIRED HINTS ${Qt6Tests_PREFIX_PATH})
      

      Adding an explicit

      find_package(Qt6CoreTools REQUIRED HINTS ${Qt6Tests_PREFIX_PATH})
      

      makes it work of course.

      It's unclear to me yet why it works locally for me and in the CI.

      Attachments

        For Gerrit Dashboard: QTBUG-86963
        # Subject Branch Project Status CR V

        Activity

          People

            alexandru.croitor Alexandru Croitor
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes