diff options
author | Brad King <brad.king@kitware.com> | 2024-02-08 21:35:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-02-08 21:46:53 (GMT) |
commit | 58a271e60b53f6d2393f84bc3f56f087b3d7f5af (patch) | |
tree | 4f6f4c01e4b0bc4d077a876336ec1edaa268d6a4 /Source | |
parent | f4b5152f472edcefb3068b8c276bc28df59c9635 (diff) | |
download | CMake-58a271e60b53f6d2393f84bc3f56f087b3d7f5af.zip CMake-58a271e60b53f6d2393f84bc3f56f087b3d7f5af.tar.gz CMake-58a271e60b53f6d2393f84bc3f56f087b3d7f5af.tar.bz2 |
cmUVProcessChain: Implement no-extension-on-Windows support with libuv 1.48
Use the new `UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME` option when
building against libuv 1.48 or higher.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmUVProcessChain.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmUVProcessChain.cxx b/Source/cmUVProcessChain.cxx index cd452cb..8b8ace6 100644 --- a/Source/cmUVProcessChain.cxx +++ b/Source/cmUVProcessChain.cxx @@ -311,6 +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) + options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME; +#endif if (!this->Builder->WorkingDirectory.empty()) { options.cwd = this->Builder->WorkingDirectory.c_str(); } |