Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.0
-
3792b55022d1d6171f77d283d6e08fd868d58718 (qt/qtbase/dev)
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.