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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes