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

exported cmake targets link versionless targets when they shouldn't

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 6.5, 6.6, dev
    • Build System: CMake
    • 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

          For Gerrit Dashboard: QTBUG-114706
          # Subject Branch Project Status CR V

          Activity

            People

              semlanik Alexey Edelev
              apachelogger Harald Sitter
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes