From b66d61a8d07718ad496080c86e6f4299e50d7c55 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Jul 2019 14:34:29 -0400 Subject: 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 --- Source/cmGlobalGenerator.cxx | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v0.12