Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
6.2.4, 6.3.0
-
None
-
603d986eb (dev), 4dc6c2843 (6.7), f32b5dfff (6.6), 01c09bcce (tqtc/lts-6.5)
Description
If an installed CMake project provides imported targets that depend on / link against versionless Qt targets, these targets can cause issues when used in another project that mixes both Qt5 and Qt6 libraries.
There are also some other cases that might not work as expected (the original QTBUG-83774 description).
We should consider documenting these cases and provide some recommendations.
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-114706 exported cmake targets link versionless targets when they shouldn't
- Closed
-
QTBUG-113277 CMake: Make all examples use Qt6:: instad of Qt:: in target_link_libraries
- In Progress
- resulted from
-
QTBUG-83774 Versionless CMake config files and targets create an incompatible dialect
- Closed
For Gerrit Dashboard: QTBUG-104112 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
525058,2 | Doc: Document pitfalls of using versionless Qt targets | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
525165,2 | Doc: Document pitfalls of using versionless Qt targets | 6.7 | qt/qtdoc | Status: MERGED | +2 | 0 |
525261,2 | Doc: Document pitfalls of using versionless Qt targets | 6.6 | qt/qtdoc | Status: MERGED | +2 | 0 |
525400,2 | Doc: Document pitfalls of using versionless Qt targets | tqtc/lts-6.5 | qt/tqtc-qtdoc | Status: MERGED | +2 | 0 |