From 034d87eef5e86c614691fc069ffe89b22e8b1096 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Sun, 3 Jul 2005 12:06:40 -0400 Subject: ENH: Only truncate files when not in try compile. Alsom move truncating code closer to configure --- Source/cmake.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index ffb6ff2..5043f3d 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1109,9 +1109,6 @@ int cmake::Configure() cmCacheManager::STRING); } - this->TruncateOutputLog("CMakeOutput.log"); - this->TruncateOutputLog("CMakeError.log"); - // no generator specified on the command line if(!m_GlobalGenerator) { @@ -1211,6 +1208,13 @@ int cmake::Configure() this->CleanupWrittenFiles(); + // Truncate log files + if (!m_InTryCompile) + { + this->TruncateOutputLog("CMakeOutput.log"); + this->TruncateOutputLog("CMakeError.log"); + } + // actually do the configure m_GlobalGenerator->Configure(); -- cgit v0.12