diff options
author | Kasper Laudrup <kasper.laudrup@man-es.com> | 2019-08-08 13:30:17 (GMT) |
---|---|---|
committer | Kasper Laudrup <kasper.laudrup@man-es.com> | 2019-08-08 13:59:02 (GMT) |
commit | 6bc77966ad7cce3f12d35e64bcda4be56094b2ca (patch) | |
tree | 23bc8ea0f528d93f5f1c302c67247e40fc7c7ac5 /Source/cmFileCommand.cxx | |
parent | 5729580376da53c5665e4e3a043834ad6c7ed706 (diff) | |
download | CMake-6bc77966ad7cce3f12d35e64bcda4be56094b2ca.zip CMake-6bc77966ad7cce3f12d35e64bcda4be56094b2ca.tar.gz CMake-6bc77966ad7cce3f12d35e64bcda4be56094b2ca.tar.bz2 |
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.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string> const& args, if (cmSystemTools::FileIsDirectory(fileName) && !cmSystemTools::FileIsSymlink(fileName) && recurse) { - cmSystemTools::RemoveADirectory(fileName); + cmSystemTools::RepeatedRemoveDirectory(fileName); } else { cmSystemTools::RemoveFile(fileName); } |