From 023f5d1f25a5daaadd471805afd47c29ca6d65a5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 4 Aug 2004 17:21:19 -0400 Subject: [PATCH] ENH: allow debug of tryrun --- Source/cmTryRunCommand.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index b7300c820..4a77d1adf 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -114,7 +114,10 @@ bool cmTryRunCommand::InitialPass(std::vector const& argv) std::string cacheFile = binaryDirectory; cacheFile += "/CMakeLists.txt"; cmListFileCache::GetInstance()->FlushCache(cacheFile.c_str()); - cmTryCompileCommand::CleanupFiles(binaryDirectory.c_str()); + if(!m_Makefile->GetCMakeInstance()->GetDebugTryCompile()) + { + cmTryCompileCommand::CleanupFiles(binaryDirectory.c_str()); + } return true; }