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

    • 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.

      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

              jbornema Joerg Bornemann
              alexandru.croitor Alexandru Croitor
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes