summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-04 21:21:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-04 21:21:19 (GMT)
commit023f5d1f25a5daaadd471805afd47c29ca6d65a5 (patch)
tree6293471ed823127513131574af275b80e923bfd7 /Source/cmTryRunCommand.cxx
parent9b1771aef4c38d2b536d1b2306b62c1b2c27266e (diff)
downloadCMake-023f5d1f25a5daaadd471805afd47c29ca6d65a5.zip
CMake-023f5d1f25a5daaadd471805afd47c29ca6d65a5.tar.gz
CMake-023f5d1f25a5daaadd471805afd47c29ca6d65a5.tar.bz2
ENH: allow debug of tryrun
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r--Source/cmTryRunCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx
index b7300c8..4a77d1a 100644
--- a/Source/cmTryRunCommand.cxx
+++ b/Source/cmTryRunCommand.cxx
@@ -114,7 +114,10 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> 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;
}