Priority: P3: Somewhat important
Affects Version/s: 6.2
Component/s: Build System: CMake
Commits:e044c94a61 (qt/qtbase/dev) e044c94a61 (qt/tqtc-qtbase/dev) 73b37c656e (qt/qtbase/6.3) bdccb6882d (qt/qtbase/6.2) bdccb6882d (qt/tqtc-qtbase/6.2) 73b37c656e (qt/tqtc-qtbase/6.3) bdccb6882d (qt/tqtc-qtbase/6.2.4)
the QT_ADDITIONAL_PACKAGES_PREFIX_PATH variable was introduced as a way to find Qt CMake packages which were installed into different directories, rather than one unified Qt install prefix.
This was needed for Conan builds where each Conan package was installed into a separate directory.
That variable is not enough to allow finding host QtFooTools packages, if each host Qt package is not in a unified location.
There is various code in qtbase that manipulates the value of CMAKE_FIND_ROOT_PATH to allow such packages to be found from a non-sysroot dir, but all that code assumes that all host packages are located in a single directory.
That code should be modified to allow specifying multiple additional host package prefixes similar to QT_ADDITIONAL_PACKAGES_PREFIX_PATH above.
We could do that via a new QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH variable.
|For Gerrit Dashboard: QTBUG-94524|
|354431,3||CMake: Look for ShaderTools package in additional package paths||dev||qt/qtdeclarative||Status: MERGED||+2||0|
|354433,3||CMake: Look for ShaderTools package in additional package paths||dev||qt/qtquick3d||Status: MERGED||+2||0|
|389427,5||CMake: Introduce QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH||dev||qt/qtbase||Status: MERGED||+2||0|
|395948,2||CMake: Introduce QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH||6.2||qt/qtbase||Status: MERGED||+2||0|
|395969,2||CMake: Introduce QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH||6.3||qt/qtbase||Status: MERGED||+2||0|
|397360,3||Fix QT_ADDITIONAL_(HOST_)PACKAGES_PREFIX_PATH environment variables||dev||qt/qtbase||Status: MERGED||+2||0|
|397624,2||Fix QT_ADDITIONAL_(HOST_)PACKAGES_PREFIX_PATH environment variables||6.2||qt/qtbase||Status: MERGED||+2||0|
|397625,2||Fix QT_ADDITIONAL_(HOST_)PACKAGES_PREFIX_PATH environment variables||6.3||qt/qtbase||Status: MERGED||+2||0|