From 6bc77966ad7cce3f12d35e64bcda4be56094b2ca Mon Sep 17 00:00:00 2001 From: Kasper Laudrup Date: Thu, 8 Aug 2019 15:30:17 +0200 Subject: 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. --- Source/cmFileCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 22f0d1f..ef26a99 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -1422,7 +1422,7 @@ bool cmFileCommand::HandleRemove(std::vector const& args, if (cmSystemTools::FileIsDirectory(fileName) && !cmSystemTools::FileIsSymlink(fileName) && recurse) { - cmSystemTools::RemoveADirectory(fileName); + cmSystemTools::RepeatedRemoveDirectory(fileName); } else { cmSystemTools::RemoveFile(fileName); } -- cgit v0.12