Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.10
-
None
-
virtual windows 11 on ubuntu
-
-
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
- relates to
-
QTBUG-126827 Configuring a cmake-based Qt Quick project fails if the path contains spaces
-
- Closed
-
-
QTBUG-126827 Configuring a cmake-based Qt Quick project fails if the path contains spaces
-
- Closed
-