Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104112

Document potential pitfalls of using versionless targets and packages in CMake project code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.4, 6.3.0
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None

      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.

      See example here https://bugreports.qt.io/browse/QTBUG-83774?focusedCommentId=665429&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-665429

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              alexandru.croitor Alexandru Croitor
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes