cmGlobalGenerator: Implement FillProjectMap in terms of cmState.
This commit is contained in:
parent
b3f2299e06
commit
637c56b4e0
|
@ -2102,18 +2102,19 @@ void cmGlobalGenerator::FillProjectMap()
|
||||||
for(i = 0; i < this->LocalGenerators.size(); ++i)
|
for(i = 0; i < this->LocalGenerators.size(); ++i)
|
||||||
{
|
{
|
||||||
// for each local generator add all projects
|
// for each local generator add all projects
|
||||||
cmLocalGenerator *lg = this->LocalGenerators[i];
|
cmState::Snapshot snp = this->LocalGenerators[i]->GetStateSnapshot();
|
||||||
std::string name;
|
std::string name;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (name != lg->GetMakefile()->GetProjectName())
|
std::string snpProjName = snp.GetProjectName();
|
||||||
|
if (name != snpProjName)
|
||||||
{
|
{
|
||||||
name = lg->GetMakefile()->GetProjectName();
|
name = snpProjName;
|
||||||
this->ProjectMap[name].push_back(this->LocalGenerators[i]);
|
this->ProjectMap[name].push_back(this->LocalGenerators[i]);
|
||||||
}
|
}
|
||||||
lg = lg->GetParent();
|
snp = snp.GetBuildsystemDirectoryParent();
|
||||||
}
|
}
|
||||||
while (lg);
|
while (snp.IsValid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue