summaryrefslogtreecommitdiff
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-23 15:01:10 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-23 15:01:10 -0500
commit09ba0a0a31ccc019020092f8cd219e26fb44fa03 (patch)
treec8d3ca8762fbeb9f0d977b1e4ac069e369aaa484 /Source/cmTryCompileCommand.cxx
parent79c23436d3a0cf90140684c876a358d225810efb (diff)
downloadcmake-09ba0a0a31ccc019020092f8cd219e26fb44fa03.tar.gz
BUG: keep more of the case information
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index 6bea62d00e..3719c6ffb2 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -15,9 +15,9 @@
=========================================================================*/
#include "cmTryCompileCommand.h"
+#include "cmake.h"
#include "cmCacheManager.h"
#include "cmListFileCache.h"
-
#include <cmsys/Directory.hxx>
int cmTryCompileCommand::CoreTryCompileCode(
@@ -236,9 +236,11 @@ int cmTryCompileCommand::CoreTryCompileCode(
if (srcFileSignature && clean)
{
cmListFileCache::GetInstance()->FlushCache(outFileName.c_str());
- cmTryCompileCommand::CleanupFiles(binaryDirectory);
+ if(!mf->GetCMakeInstance()->GetDebugTryCompile())
+ {
+ cmTryCompileCommand::CleanupFiles(binaryDirectory);
+ }
}
-
return res;
}
@@ -266,6 +268,7 @@ void cmTryCompileCommand::CleanupFiles(const char* binDir)
{
return;
}
+
std::string bdir = binDir;
if(bdir.find("CMakeTmp") == std::string::npos)
{