diff options
| author | Brad King <brad.king@kitware.com> | 2025-01-31 16:51:01 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2025-02-03 14:13:26 (GMT) |
| commit | 74c9d40876c955d5aca8824bfbdf78f79ca238a1 (patch) | |
| tree | 28d304e1910290c90fdf96db5cb2d36d4e59c617 /Tests/RunCMake/FindPython/Python2Module.cmake | |
| parent | 104ca10208401c37fbf6002d937f89d201a80f41 (diff) | |
| download | CMake-74c9d40876c955d5aca8824bfbdf78f79ca238a1.zip CMake-74c9d40876c955d5aca8824bfbdf78f79ca238a1.tar.gz CMake-74c9d40876c955d5aca8824bfbdf78f79ca238a1.tar.bz2 | |
execute_process: Fix invocation of .cmd/.bat with spaces
The `CreateProcessW` documentation states "to run a batch file, you must
start the command interpreter". Use `cmd /c the.bat` to run batch files.
Also, use a "short path" to the `.bat` file if needed to avoid spaces.
Previously this worked in some cases only due to undocumented behavior
of `CreateProcessW` when given a `.bat` file.
Fixes: #26655
Diffstat (limited to 'Tests/RunCMake/FindPython/Python2Module.cmake')
0 files changed, 0 insertions, 0 deletions
