diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-12-23 20:01:10 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-12-23 20:01:10 (GMT) |
commit | 09ba0a0a31ccc019020092f8cd219e26fb44fa03 (patch) | |
tree | c8d3ca8762fbeb9f0d977b1e4ac069e369aaa484 /Source/cmTryCompileCommand.cxx | |
parent | 79c23436d3a0cf90140684c876a358d225810efb (diff) | |
download | CMake-09ba0a0a31ccc019020092f8cd219e26fb44fa03.zip CMake-09ba0a0a31ccc019020092f8cd219e26fb44fa03.tar.gz CMake-09ba0a0a31ccc019020092f8cd219e26fb44fa03.tar.bz2 |
BUG: keep more of the case information
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index 6bea62d..3719c6f 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) { |