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

INTERFACE_QT_COORD_TYPE not set on Core target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.1.0 Alpha
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      d6a8560eaeedf889c01f2192b31a4ebf8e8f7fb9 (qt/qtbase/dev)

      Description

      In https://codereview.qt-project.org/c/qt/qtcharts/+/330692 it was discovered that qtbase doesn't set the INTERFACE_QT_COORD_TYPE property on the Core target. It only gets added to the Qt6::Core target by the Qt6CoreConfig.cmake file and only when QT_NO_CREATE_TARGETS is not true. This means INTERFACE_QT_COORD_TYPE is only set if you are building against an installed Qt or if you are doing a per-repo build against an already-built qtbase. It is NOT set if your are doing a top level superbuild or building just qtbase. It is also not set if building examples.

      The target's COMPATIBLE_INTERFACE_STRING also needs to have QT_COORD_TYPE added (it is suffering from the same problem and only gets updated for the same cases mentioned above).

      The handling of QT_MAJOR_VERSION also seems analogous, but that one seems a bit more complicated and should be addressed in its own separate issue (it interacts with autogen).

        Attachments

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

          Activity

            People

            Assignee:
            crscott Craig Scott
            Reporter:
            crscott Craig Scott
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes