The macro sets the Qt related PATHs and attempts to call execute_proccess command in resulting environment. This command should be used to reproduce the _qt_internal_generate_tool_command_wrapper behavior for execute_process. Since we may control the environment during the CMake execution, there is no need to use a proxy batch script to configure it. The use of tool command wrapper in execute_process has a potential issue related to the invalid command line processing. cmd.exe is unable to parse command line correctly if the first argument is batch script containing spaces and the follow arguments contain spaces as well. execute_process internals use API that has exact same behavior. Task-number: QTBUG-128420 Pick-to: 6.7 6.5 Change-Id: I2339c85ed611da89176629878db550b7b7976367 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit b68b3e773c68b577c55db76ca5c211e919ae8136) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%