Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.0
-
7bb91398f25cb2016c0558fd397b376f413e3e96 (qt/qtbase/dev)
Description
Our Qt6Config.cmake file limits on purpose the component search to the current Qt6/.. dir location using the NO_DEFAULT_PATH.
This means that even if CMAKE_PREFIX_PATH is set to point to wherever Conan installed NetworkAuth, find_package(Qt6 COMPONENTS NetworkAuth) will report NetworkAuth is not found.
A workaround is to call find_package(Qt6NetworkAuth) directly which would pick it up from CMAKE_PREFIX_PATH, bypassing the Qt6Config file.
In such a case the dependencies need to be explicitly specified as well, which means that the working workaround code would be
find_package(Qt6 COMPONENTS Network) find_package(Qt6NetworkAuth)
Figure out why we limit the dir path and we if can disable it, or augment it with some additional variable where to look for packages.
I suspect we limit it to, to ensure we don't pick up distro system CMake packages.
Attachments
Issue Links
- relates to
-
QTBUG-94524 Introduce a QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH variable
- Closed
For Gerrit Dashboard: QTBUG-86882 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
315463,3 | CMake: Allow finding Qt CMake packages in additional locations | dev | qt/qtbase | Status: MERGED | +2 | 0 |