summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-08 21:49:18 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-08 22:00:47 (GMT)
commit077a1d57695c6c052fee47ddb977a3d95144dabd (patch)
tree91e0fae6f4285302bb0639a0189e5c1a3446ce13 /Source
parentf02ac511504ec1a22e07c5c6c82bb60e07f40500 (diff)
downloadCMake-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.cxx4
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()) {