1
0
Эх сурвалжийг харах

ENH: fix seg fault in ccmake when hitting configure twice

Bill Hoffman 18 жил өмнө
parent
commit
32aecc84a1

+ 4 - 2
Source/cmGlobalGenerator.cxx

@@ -623,9 +623,11 @@ void cmGlobalGenerator::Configure()
     delete this->LocalGenerators[i];
     }
   this->LocalGenerators.clear();
-
+  this->TargetDependencies.clear();
   this->TotalTargets.clear();
-  
+  this->ProjectToTargetMap.clear();
+  this->ProjectMap.clear();
+
   // start with this directory
   cmLocalGenerator *lg = this->CreateLocalGenerator();
   this->LocalGenerators.push_back(lg);