mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
ENH: Only truncate files when not in try compile. Alsom move truncating code closer to configure
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user