summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-11-19 13:30:10 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-19 13:37:10 (GMT)
commit5ff75873a98fa9f35a80cc7dc092964d0504de8f (patch)
tree9258cdcb99baa401768549bdfe4a10a7ba4f72a8 /Source
parent3e0eeb9fc832cde370ea70b1b3c8e7ebb42c860a (diff)
downloadCMake-5ff75873a98fa9f35a80cc7dc092964d0504de8f.zip
CMake-5ff75873a98fa9f35a80cc7dc092964d0504de8f.tar.gz
CMake-5ff75873a98fa9f35a80cc7dc092964d0504de8f.tar.bz2
Initialize IMPORTED GLOBAL targets on reconfigure (#13702)
Since commit ca39c5cd (Optionally allow IMPORTED targets to be globally visible, 2012-01-25) cmGlobalGenerator has a second member that tracks targets with global scope. We must initialize the new 'ImportedTargets' member wherever the old 'TotalTargets' member is initialized. Without this initialization the ImportedTargets member is left with dangling pointers during a same-process re-configuration.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 8dce053..9059e8a 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -817,6 +817,7 @@ void cmGlobalGenerator::Configure()
this->LocalGenerators.clear();
this->TargetDependencies.clear();
this->TotalTargets.clear();
+ this->ImportedTargets.clear();
this->LocalGeneratorToTargetMap.clear();
this->ProjectMap.clear();
this->RuleHashes.clear();