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

_qt_internal_create_command_script fails on windows if spaces present

    XMLWordPrintable

Details

    • Windows
    • 10a385980 (dev), ee533138d (6.9), 5f3dc75ab (6.8), 752b89bdb (tqtc/lts-6.5)

    Description

      _qt_internal_create_command_script adds "cmd /c" if building on windows,

      this does not work if the command contains spaces.

      In particular the mqtt/module_includes test fails on windows with

      command not found of "C:\Program"

      A potential fix is:

      if(CMAKE_HOST_WIN32)
               # It's necessary to call actual test inside 'cmd.exe', because 'execute_process' uses
               # SW_HIDE to avoid showing a console window, it affects other GUI as well.
               # See https://gitlab.kitware.com/cmake/cmake/-/issues/17690 for details.
              #
              # We add 'call' to be able to handle arguments with spaces
              set(extra_runner "cmd /c call")
      endif()

       

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              evenandersen Even Oscar Andersen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes