summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKasper Laudrup <kasper.laudrup@man-es.com>2019-08-08 15:30:17 +0200
committerKasper Laudrup <kasper.laudrup@man-es.com>2019-08-08 15:59:02 +0200
commit6bc77966ad7cce3f12d35e64bcda4be56094b2ca (patch)
tree23bc8ea0f528d93f5f1c302c67247e40fc7c7ac5
parent5729580376da53c5665e4e3a043834ad6c7ed706 (diff)
downloadcmake-6bc77966ad7cce3f12d35e64bcda4be56094b2ca.tar.gz
Retry removing directories on Windows
On Windows removing a directory can fail if other processes have a handle to it. This has been "solved" with a retry hack when moving directories, so use the same hack when removing directories.
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 22f0d1f2a6..ef26a99036 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1422,7 +1422,7 @@ bool cmFileCommand::HandleRemove(std::vector<std::string> const& args,
if (cmSystemTools::FileIsDirectory(fileName) &&
!cmSystemTools::FileIsSymlink(fileName) && recurse) {
- cmSystemTools::RemoveADirectory(fileName);
+ cmSystemTools::RepeatedRemoveDirectory(fileName);
} else {
cmSystemTools::RemoveFile(fileName);
}