summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-08 18:34:29 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-08 18:40:46 (GMT)
commitb66d61a8d07718ad496080c86e6f4299e50d7c55 (patch)
treef69ae01b1a0a2cd9ac1ff2d0808494f33df9b5ea /Source
parent753373579e3dd8cf19f0fc18f4d9bec43a2d82e8 (diff)
downloadCMake-b66d61a8d07718ad496080c86e6f4299e50d7c55.zip
CMake-b66d61a8d07718ad496080c86e6f4299e50d7c55.tar.gz
CMake-b66d61a8d07718ad496080c86e6f4299e50d7c55.tar.bz2
cmGlobalGenerator: Do not persist alias targets across configures
In `ccmake` a single global generator instance may be used for multiple configure step runs. The `cmGlobalGenerator::ClearGeneratorMembers` method is supposed to clear global state that is specific to each configure run but forgot to clear alias targets. Fixes: #19457
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 df0f33f..4eba4ff 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1681,6 +1681,7 @@ void cmGlobalGenerator::ClearGeneratorMembers()
cmDeleteAll(this->LocalGenerators);
this->LocalGenerators.clear();
+ this->AliasTargets.clear();
this->ExportSets.clear();
this->TargetDependencies.clear();
this->TargetSearchIndex.clear();