mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
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
This commit is contained in:
@@ -1681,6 +1681,7 @@ void cmGlobalGenerator::ClearGeneratorMembers()
|
|||||||
cmDeleteAll(this->LocalGenerators);
|
cmDeleteAll(this->LocalGenerators);
|
||||||
this->LocalGenerators.clear();
|
this->LocalGenerators.clear();
|
||||||
|
|
||||||
|
this->AliasTargets.clear();
|
||||||
this->ExportSets.clear();
|
this->ExportSets.clear();
|
||||||
this->TargetDependencies.clear();
|
this->TargetDependencies.clear();
|
||||||
this->TargetSearchIndex.clear();
|
this->TargetSearchIndex.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user