mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-18 05:01:50 -06:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user