diff options
author | Brad King <brad.king@kitware.com> | 2018-01-23 13:55:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-23 14:29:07 (GMT) |
commit | 98628de812c4724fb2da199abb5fe08eeb5a1a64 (patch) | |
tree | 66e7c15536fede8e4b4f266147d19754e48311b8 /Source/QtDialog | |
parent | 3b588ac58256540e6dc974cf2d1a122c95f19171 (diff) | |
download | CMake-98628de812c4724fb2da199abb5fe08eeb5a1a64.zip CMake-98628de812c4724fb2da199abb5fe08eeb5a1a64.tar.gz CMake-98628de812c4724fb2da199abb5fe08eeb5a1a64.tar.bz2 |
Extend libuv file translate mode workaround to all executables
Since libuv commit v1.14.1~7 (win: add uv__once_init() calls,
2017-08-30) the libuv initialization of the file translate mode may take
place even if we do not use a uv loop. This change was included in our
libuv update commit f4a26c748b (libuv 2018-01-19). Therefore use of
libuv even through `cmSystemTools::GetRealPath` in any executable may
trigger its file translate mode setting.
Factor out the logic added to `cmake.exe` by commit v3.9.0-rc4~10^2
(cmake: Fix default file translate mode when using libuv, 2017-06-13)
and re-use to initialize all executables.
Issue: #16962
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index bfd43cf..193f4d3 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -55,6 +55,7 @@ int main(int argc, char** argv) int argc2 = encoding_args.argc(); char const* const* argv2 = encoding_args.argv(); + cmSystemTools::InitializeLibUV(); cmSystemTools::FindCMakeResources(argv2[0]); // check docs first so that X is not need to get docs // do docs, if args were given |