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

qmldir file not placed with library with CMake Xcode generator

    XMLWordPrintable

Details

    • macOS
    • 061891ffe (dev), 3e5a75002 (6.7), d276d025a (dev), 5e60f6d14 (6.7), 7d26fdbe1 (6.6), aef40493f (tqtc/lts-6.5)

    Description

      Our CMake magic puts the qmldir file into the target specific build dir, foo/qmldir, while the library, when using the Xcode generator ends up in foo/Debug/. We then try to copy the qmldir, via add_qml_module_to_macos_app_bundle, but do so via "$<TARGET_FILE_DIR:${qml_plugin_target}>/qmldir", which tries to find it in foo/Debug/qmldir.

      Resulting in:

      Showing Recent Issues Error copying file (if different) from "/Users/torarne/build/qt/6.x/examples/winembedxcode/shared/Debug/qmldir" to "/Users/torarne/build/qt/6.x/examples/winembedxcode/Debug/windowembedding.app/Contents/MacOS/../PlugIns/shared".

      Also reproducible with the Ninja Multi-Config generator.

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: