summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-07-03 16:06:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-07-03 16:06:40 (GMT)
commit034d87eef5e86c614691fc069ffe89b22e8b1096 (patch)
tree00b60919c2631c781b1713daa731b3d5a3cb097c /Source/cmake.cxx
parent69911a74aa0da0fb9f6be379321bc429d34a1c5d (diff)
downloadCMake-034d87eef5e86c614691fc069ffe89b22e8b1096.zip
CMake-034d87eef5e86c614691fc069ffe89b22e8b1096.tar.gz
CMake-034d87eef5e86c614691fc069ffe89b22e8b1096.tar.bz2
ENH: Only truncate files when not in try compile. Alsom move truncating code closer to configure
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files 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();