diff options
author | Brad King <brad.king@kitware.com> | 2024-02-08 21:49:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-02-08 22:00:47 (GMT) |
commit | 077a1d57695c6c052fee47ddb977a3d95144dabd (patch) | |
tree | 91e0fae6f4285302bb0639a0189e5c1a3446ce13 /Source | |
parent | f02ac511504ec1a22e07c5c6c82bb60e07f40500 (diff) | |
download | CMake-077a1d57695c6c052fee47ddb977a3d95144dabd.zip CMake-077a1d57695c6c052fee47ddb977a3d95144dabd.tar.gz CMake-077a1d57695c6c052fee47ddb977a3d95144dabd.tar.bz2 |
libuv: win/spawn: optionally run executable paths with no file extension
Backport libuv commit `3f7191e5` (win/spawn: optionally run executable
paths with no file extension, 2024-02-05, v1.48.0~8) to add the
`UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME` option we now use.
Issue: #25450
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmUVProcessChain.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmUVProcessChain.cxx b/Source/cmUVProcessChain.cxx index 8b8ace6..b0f1cf1 100644 --- a/Source/cmUVProcessChain.cxx +++ b/Source/cmUVProcessChain.cxx @@ -311,7 +311,9 @@ void cmUVProcessChain::InternalData::SpawnProcess( arguments.push_back(nullptr); options.args = const_cast<char**>(arguments.data()); options.flags = UV_PROCESS_WINDOWS_HIDE; -#if UV_VERSION_MAJOR > 1 || (UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR >= 48) +#if UV_VERSION_MAJOR > 1 || \ + (UV_VERSION_MAJOR == 1 && UV_VERSION_MINOR >= 48) || \ + !defined(CMAKE_USE_SYSTEM_LIBUV) options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME; #endif if (!this->Builder->WorkingDirectory.empty()) { |