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

exported cmake targets link versionless targets when they shouldn't

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.0 FF
    • 6.5, 6.6, dev
    • Build System: CMake
    • None
    • 1c287cea2 (dev), 173164cd4 (dev)

      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.
       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes