fix to the cleanup code
This commit is contained in:
parent
6132184cc3
commit
b3b0eeba05
|
@ -94,14 +94,22 @@ bool cmTryCompileCommand::InitialPass(std::vector<std::string> const& argv)
|
|||
m_Makefile->AddDefinition(argv[0].c_str(), (res == 0 ? "TRUE" : "FALSE"));
|
||||
|
||||
// if we created a directory etc, then cleanup after ourselves
|
||||
/*
|
||||
cmDirectory dir;
|
||||
dir.Load(binaryDirectory);
|
||||
size_t fileNum;
|
||||
for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum)
|
||||
{
|
||||
cmSystemTools::RemoveFile(dir.GetFile(fileNum));
|
||||
if (strcmp(dir.GetFile(fileNum),".") &&
|
||||
strcmp(dir.GetFile(fileNum),".."))
|
||||
{
|
||||
std::string fullPath = binaryDirectory;
|
||||
fullPath += "/";
|
||||
fullPath += dir.GetFile(fileNum);
|
||||
cmSystemTools::RemoveFile(fullPath.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue