diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-11-01 21:55:45 +0100 |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2013-11-02 13:05:38 +0100 |
commit | 35fbc10079fcbce51f542347cf74c57e3164b85e (patch) | |
tree | f533229e8bc7222aa61735aebffac838ff5ef4b0 /Source/CTest/cmCTestScriptHandler.h | |
parent | 9d9f102f5371a19e45fff5034f97b2f9f6d523f9 (diff) | |
download | cmake-35fbc10079fcbce51f542347cf74c57e3164b85e.tar.gz |
CTest: more aggressive implementation of ctest_empty_binary_directory()
Make sure that CMakeCache.txt is the last file being removed since
the binary directory may be left in a state that is no longer
removable otherwise.
Also retry removal a couple of times which makes this more robust
on windows where file locks may temporarily prevent removal.
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.h')
-rw-r--r-- | Source/CTest/cmCTestScriptHandler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.h b/Source/CTest/cmCTestScriptHandler.h index 80d5831e0c..44e9dd0f5f 100644 --- a/Source/CTest/cmCTestScriptHandler.h +++ b/Source/CTest/cmCTestScriptHandler.h @@ -135,6 +135,9 @@ private: // Add ctest command void AddCTestCommand(cmCTestCommand* command); + // Try to remove the binary directory once + static bool TryToRemoveBinaryDirectoryOnce(const std::string& directoryPath); + std::vector<cmStdString> ConfigurationScripts; std::vector<bool> ScriptProcessScope; |