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

        1. cmake_configure_out.txt
          77 kB
          Andreas Buhr
        2. ctest_add_resource_options_out.txt
          5 kB
          Andreas Buhr
        3. ctest_out_extended_not_working.txt
          9 kB
          Andreas Buhr
        4. ctest_out_extended_working.txt
          19 kB
          Andreas Buhr
        5. ctest.out
          16 kB
          Andreas Buhr
        6. qt-internal-configure-tests.out
          19 kB
          Andreas Buhr
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        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