BUG: Fix resolving of infinite loops while CMakeSetup/ccmake still running

This commit is contained in:
Andy Cedilnik 2004-04-26 11:23:06 -04:00
parent c63c23a617
commit 34115a5989
2 changed files with 8 additions and 0 deletions

View File

@ -1065,6 +1065,8 @@ int cmake::Configure()
m_GlobalGenerator->ClearEnabledLanguages();
}
this->CleanupWrittenFiles();
// actually do the configure
m_GlobalGenerator->Configure();
@ -1426,3 +1428,8 @@ bool cmake::HasWrittenFile(const char* file)
{
return m_WrittenFiles.find(file) != m_WrittenFiles.end();
}
void cmake::CleanupWrittenFiles()
{
m_WrittenFiles.clear();
}

View File

@ -261,6 +261,7 @@ class cmake
///! Get the list of files written by CMake using FILE(WRITE / WRITE_FILE
void AddWrittenFile(const char* file);
bool HasWrittenFile(const char* file);
void CleanupWrittenFiles();
protected:
typedef cmGlobalGenerator* (*CreateGeneratorFunctionType)();