diff options
author | Brad King <brad.king@kitware.com> | 2010-06-04 18:32:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-06-04 18:32:08 (GMT) |
commit | fdb5f78705f1a603d176a0976c931dd197567ff9 (patch) | |
tree | 3133f91aaf9fe5aeb44cc1ff22c8d0379bc4a725 /Source/cmSystemTools.h | |
parent | 3ac3dea6f0eb1ce68b321020ecdd336b3db8a0fe (diff) | |
download | CMake-fdb5f78705f1a603d176a0976c931dd197567ff9.zip CMake-fdb5f78705f1a603d176a0976c931dd197567ff9.tar.gz CMake-fdb5f78705f1a603d176a0976c931dd197567ff9.tar.bz2 |
CPack: Try harder to remove temporary dir (#10793)
Windows filesystems sometimes lock files temporarily. Try removing the
CPack temp install folder multiple times before giving up.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index ed924dd..da5da31 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -436,6 +436,9 @@ public: static bool CheckRPath(std::string const& file, std::string const& newRPath); + /** Remove a directory; repeat a few times in case of locked files. */ + static bool RepeatedRemoveDirectory(const char* dir); + private: static bool s_ForceUnixPaths; static bool s_RunCommandHideConsole; |