diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-13 14:42:50 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-13 14:42:50 (GMT) |
commit | 6132184cc3a3832463308fa45d7fda17f3df067e (patch) | |
tree | 59c853ecf53c4332fc28b5fec6061ba8690e6212 /Source/cmTryCompileCommand.cxx | |
parent | c1da4c9570d57f641f35038bbadb926398d4236c (diff) | |
download | CMake-6132184cc3a3832463308fa45d7fda17f3df067e.zip CMake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.gz CMake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.bz2 |
better trycompile and enable langiages
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index eba8ca6..087d000 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -94,8 +94,13 @@ 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 - // Actually right now lets not clean up after ourselves, removing - // a directory is tricky and putting that code in could be a risk + cmDirectory dir; + dir.Load(binaryDirectory); + size_t fileNum; + for (fileNum = 0; fileNum < dir.GetNumberOfFiles(); ++fileNum) + { + cmSystemTools::RemoveFile(dir.GetFile(fileNum)); + } return true; } |