summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-13 15:01:29 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-13 15:01:29 (GMT)
commitb3b0eeba05d49a08cf6b0401b4ad6dc8906fa9e7 (patch)
tree75de4422b8d8045351a1b8d38dab5a8fa1932804 /Source/cmTryCompileCommand.cxx
parent6132184cc3a3832463308fa45d7fda17f3df067e (diff)
downloadCMake-b3b0eeba05d49a08cf6b0401b4ad6dc8906fa9e7.zip
CMake-b3b0eeba05d49a08cf6b0401b4ad6dc8906fa9e7.tar.gz
CMake-b3b0eeba05d49a08cf6b0401b4ad6dc8906fa9e7.tar.bz2
fix to the cleanup code
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index 087d000..aed26e7 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -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;
}