Browse Source

Merge topic 'clear-evaluation-files'

2e388cc file(GENERATE): Clear internal records between configures
Brad King 12 years ago
parent
commit
47694c40e3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Source/cmGlobalGenerator.cxx

+ 8 - 0
Source/cmGlobalGenerator.cxx

@@ -979,6 +979,14 @@ void cmGlobalGenerator::Configure()
     delete this->LocalGenerators[i];
     }
   this->LocalGenerators.clear();
+  for(std::vector<cmGeneratorExpressionEvaluationFile*>::const_iterator
+      li = this->EvaluationFiles.begin();
+      li != this->EvaluationFiles.end();
+      ++li)
+    {
+    delete *li;
+    }
+  this->EvaluationFiles.clear();
   this->TargetDependencies.clear();
   this->TotalTargets.clear();
   this->ImportedTargets.clear();