Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.3
-
None
-
bb7637144762436fe0a3ac0abf9dd9199fc1fba0 (qt/qtwayland/dev)
Description
As a result of https://codereview.qt-project.org/c/qt/qtwayland/+/356487 when configuring an example project, the package is not automatically found anymore.
CMake Warning at qt6/qtbase/lib/cmake/Qt6/Qt6Config.cmake:124 (find_package): Found package configuration file: qt6/qtbase/lib/cmake/Qt6WaylandClient/Qt6WaylandClientConfig.cmake but it set Qt6WaylandClient_FOUND to FALSE so package "Qt6WaylandClient" is considered to be NOT FOUND. Reason given by package: The following imported targets are referenced, but are missing: Qt6::WaylandGlobalPrivate Call Stack (most recent call first): CMakeLists.txt:24 (find_package)
A possible quickfix is to make use PUBLIC_LIBRARIES instead of LIBRARIES.
Another likely fix is to use one of the qt_internal_record_extra_package functions.