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

qt_add_qml_module unconditionally installs metatypes.json files into "arbitrary" directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.0 Beta4
    • 6.2.0 Beta2
    • Build System: CMake
    • None

    Description

      We are using qt_add_qml_module for Qt Creator's QML based profilers (QML profiler, perf profiler, ctf visualizer) since recently.

      Since these are plugins, so libraries and not executables, qt_add_qml_module / qt6_extract_metatypes unconditionally installs the metatypes.json files for them, in a directory that is based on the Qt installation layout.

      Since we don't intend these libraries to be extended, we do not want these files to be installed.

      Even worse, on macOS the metatype files are installed to "<install>/lib/" which is completely against our installation layout for Qt Creator, which installs everything into "<install>/Qt Creator.app/" since we provide a standalone application.

      Please provide an option to override this behavior of qt_add_qml_module / qt6_extract_metatypes .

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: