diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-23 15:06:01 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-23 15:06:01 (GMT) |
commit | e6406f681de91c0a39478a6e42fb43787bea077b (patch) | |
tree | 71018cbe94ff6073a4bac3cfb75d529264fc2a7b /Source/cmTryRunCommand.cxx | |
parent | 9cf39703dca89a2d9c21c62df9513233aaf41573 (diff) | |
download | CMake-e6406f681de91c0a39478a6e42fb43787bea077b.zip CMake-e6406f681de91c0a39478a6e42fb43787bea077b.tar.gz CMake-e6406f681de91c0a39478a6e42fb43787bea077b.tar.bz2 |
Abstract cleaning of files and add code that deletes files from Debug subdirectory
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r-- | Source/cmTryRunCommand.cxx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index e590fdb..250945f 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -109,24 +109,10 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv) } // if we created a directory etc, then cleanup after ourselves - cmDirectory dir; - dir.Load(binaryDirectory.c_str()); - size_t fileNum; - for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum) - { - if (strcmp(dir.GetFile(fileNum),".") && - strcmp(dir.GetFile(fileNum),"..")) - { - std::string fullPath = binaryDirectory; - fullPath += "/"; - fullPath += dir.GetFile(fileNum); - cmSystemTools::RemoveFile(fullPath.c_str()); - } - } std::string cacheFile = binaryDirectory; cacheFile += "/CMakeLists.txt"; cmListFileCache::GetInstance()->FlushCache(cacheFile.c_str()); - + cmTryCompileCommand::CleanupFiles(binaryDirectory.c_str()); return true; } |