Commit 1ab9f474 authored by Brad King's avatar Brad King
Browse files

BUG: Do not report an error removing the binary directory if it doesn't exist.

parent a1de5748
......@@ -788,10 +788,10 @@ bool cmCTestScriptHandler::EmptyBinaryDirectory(const char *sname)
// try to avoid deleting directories that we shouldn't
std::string check = sname;
check += "/CMakeCache.txt";
if (cmSystemTools::FileExists(check.c_str()))
if(cmSystemTools::FileExists(check.c_str()) &&
return true;
return false;
return false;
return true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment