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

qt_generate_deploy_qml_app_script: Error for space in output name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • Build System: CMake
    • None
    • 847afd03c (dev)

    Description

      On MacOS, it is pretty custom to use app bundle names with spaces, e.g. "Qt Creator.app". But this results in errors at installation time, if using qt_generate_deploy_qml_app_script():

      if(APPLE)
          set_target_properties(appappbundletest PROPERTIES
              OUTPUT_NAME "App Bundle Test"
              MACOSX_BUNDLE_BUNDLE_NAME "App Bundle Test"
              MACOSX_BUNDLE TRUE
          )
      endif()
      // ...
      qt_generate_deploy_qml_app_script(
          TARGET appappbundletest
          OUTPUT_SCRIPT deploy_script
          MACOS_BUNDLE_POST_BUILD
          NO_UNSUPPORTED_PLATFORM_ERROR
          DEPLOY_USER_QML_MODULES_ON_UNSUPPORTED_PLATFORM
      )
      install(SCRIPT ${deploy_script})
      

      Resuls in

      CMake Error at /Users/kkoehne/Qt/6.10.0/macos/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:666 (message):
        Unparsed arguments: Bundle;Test.app
      Call Stack (most recent call first):
        .qt/deploy_qml_app_appappbundletest_d10f54b60a.cmake:7 (qt6_deploy_runtime_dependencies)
        cmake_install.cmake:52 (include)
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are 2 open Gerrit changes