summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-08 14:34:29 -0400
committerBrad King <brad.king@kitware.com>2019-07-08 14:40:46 -0400
commitb66d61a8d07718ad496080c86e6f4299e50d7c55 (patch)
treef69ae01b1a0a2cd9ac1ff2d0808494f33df9b5ea
parent753373579e3dd8cf19f0fc18f4d9bec43a2d82e8 (diff)
downloadcmake-b66d61a8d07718ad496080c86e6f4299e50d7c55.tar.gz
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
-rw-r--r--Source/cmGlobalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index df0f33fdf0..4eba4ff93f 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();