summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-09 13:58:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-02-09 13:58:44 (GMT)
commitde66a70b738f52309e5fcb9e7b3c59b7e7e97522 (patch)
treebaebdfe879530f00682524c84d04279331ee6425 /Source
parentd968391a0f7367bb0c820c83e5f2646a33a94fa3 (diff)
parent077a1d57695c6c052fee47ddb977a3d95144dabd (diff)
downloadCMake-de66a70b738f52309e5fcb9e7b3c59b7e7e97522.zip
CMake-de66a70b738f52309e5fcb9e7b3c59b7e7e97522.tar.gz
CMake-de66a70b738f52309e5fcb9e7b3c59b7e7e97522.tar.bz2
Merge topic 'libuv-1.48' into release-3.29
077a1d5769 libuv: win/spawn: optionally run executable paths with no file extension f02ac51150 libuv: Revert "win/spawn: run executables with no file extension" 58a271e60b cmUVProcessChain: Implement no-extension-on-Windows support with libuv 1.48 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9238
Diffstat (limited to 'Source')
-rw-r--r--Source/cmUVProcessChain.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmUVProcessChain.cxx b/Source/cmUVProcessChain.cxx
index 0412f45..b787f19 100644
--- a/Source/cmUVProcessChain.cxx
+++ b/Source/cmUVProcessChain.cxx
@@ -337,6 +337,11 @@ 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) || \
+ !defined(CMAKE_USE_SYSTEM_LIBUV)
+ options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME;
+#endif
if (!this->Builder->WorkingDirectory.empty()) {
options.cwd = this->Builder->WorkingDirectory.c_str();
}