diff options
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) { |