summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-21 15:00:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-12-21 15:00:18 (GMT)
commit81809d1485a0b05c85f7f5b57adfc20c169c5a44 (patch)
tree0a2de0b0505d45078cc840cb32850f2b34b607bb
parent4a6074821eb0d49bfe8b47742a355809bd72996e (diff)
parent92021198e532052739ac57b0dbf75c183eae41f1 (diff)
downloadCMake-81809d1485a0b05c85f7f5b57adfc20c169c5a44.zip
CMake-81809d1485a0b05c85f7f5b57adfc20c169c5a44.tar.gz
CMake-81809d1485a0b05c85f7f5b57adfc20c169c5a44.tar.bz2
Merge topic 'revert-write-through' into release-3.19
92021198e5 cmSystemTools: Revert use of MOVEFILE_WRITE_THROUGH by RenameFile on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5628
-rw-r--r--Source/cmSystemTools.cxx3
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