diff options
author | Brad King <brad.king@kitware.com> | 2020-12-21 15:00:10 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-12-21 15:00:18 (GMT) |
commit | bb87f40b55877499e1046e81c590ee879bc18856 (patch) | |
tree | 36e6841ae0b1645017d456647516811193493b86 /Source | |
parent | 6e4e444d8225464415cd2f5ff3d519cc77c3b86a (diff) | |
parent | 92021198e532052739ac57b0dbf75c183eae41f1 (diff) | |
download | CMake-bb87f40b55877499e1046e81c590ee879bc18856.zip CMake-bb87f40b55877499e1046e81c590ee879bc18856.tar.gz CMake-bb87f40b55877499e1046e81c590ee879bc18856.tar.bz2 |
Merge topic 'revert-write-through'
92021198e5 cmSystemTools: Revert use of MOVEFILE_WRITE_THROUGH by RenameFile on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5628
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 97440d2..6a705f4 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -952,9 +952,8 @@ bool cmMoveFile(std::wstring const& oldname, std::wstring const& newname) SetLastError(0); // Use MOVEFILE_REPLACE_EXISTING to replace an existing destination file. - // Use MOVEFILE_WRITE_THROUGH to flush the change to disk before returning. return MoveFileExW(oldname.c_str(), newname.c_str(), - MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH); + MOVEFILE_REPLACE_EXISTING); } } #endif |