Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5, 6.6, dev
-
None
-
1c287cea2 (dev), 173164cd4 (dev)
Description
At least when building modules separately the cmake generated targets files contain link lines like the following:
INTERFACE_LINK_LIBRARIES "Qt::Core;Qt::Gui;Wayland::Client;Wayland::Cursor"
Seen at least in QtWaylandClient and QtQuick in KDE neon's and Arch's Qt 6.5 builds as well as manual builds of dev. This makes linking impossible when using QT_NO_CREATE_VERSIONLESS_TARGETS because these targets do not exist.
As a workaround one can add aliases for the missing targets. A bit hacky though.
Attachments
Issue Links
- relates to
-
QTBUG-97097 Calling find_package Qt 5 before Qt 6 in CMakeLists.txt causes CMake Generate step failed
- Open
-
QTBUG-99275 agent:2021/12/16 18:36:00 build.go:394: FAILED: tests/auto/quickcontrols2/controls/basic/tst_basic
- Closed
-
QTBUG-86533 Yocto and QNX builds are missing -rpath-link linker flag which causes non-prefix builds to fail
- Closed
-
QTBUG-99298 File issue to CMake bug tracker regarding transitive dependencies not being considered for rpath-link generation
- Reported
-
QTBUG-104112 Document potential pitfalls of using versionless targets and packages in CMake project code
- Closed