diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2024-08-19 19:12:03 (GMT) |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2024-08-21 09:05:19 (GMT) |
commit | 8d1803d463adac8ebc63bb0d1a9ef55b6c56472a (patch) | |
tree | f5deb9b7126b04cbb875553080ebbeaa6fe36520 /Source/cmConfigureLog.cxx | |
parent | 9ab270f47d68198dee29780a346294a728087105 (diff) | |
download | CMake-8d1803d463adac8ebc63bb0d1a9ef55b6c56472a.zip CMake-8d1803d463adac8ebc63bb0d1a9ef55b6c56472a.tar.gz CMake-8d1803d463adac8ebc63bb0d1a9ef55b6c56472a.tar.bz2 |
AutoGen: Run batch scripts using cmd.exe on windows platforms explicitly
The CreateProcessW function requires to use the cmd.exe when
attempting to execute batch scripts. AutoMoc RunProcess relies on
CreateProcessW in it's internals. Currently the cmd.exe run happens
implicitly for batch files(perhaps by luck), but this is not
documented anywhere.
This replaces the .bat files in the AutoGen related command lines with
explicit 'cmd.exe /c' call. Also 'cmd.exe /c' has own limitation
related to the arguments. The very first argument shouldn't be quoted
otherwise this lead to the parsing issues. So for the .bat files that
contain spaces in their paths use short name conversion.
Fixes #26208
Diffstat (limited to 'Source/cmConfigureLog.cxx')
0 files changed, 0 insertions, 0 deletions