BUG: Make sure targets of type GLOBAL_TARGET have a makefile set.

This commit is contained in:
Brad King 2006-08-25 22:56:36 -04:00
parent 6e2f819942
commit ed6791c898
1 changed files with 3 additions and 2 deletions

View File

@ -716,12 +716,13 @@ void cmGlobalGenerator::Generate()
}
for (i = 0; i < this->LocalGenerators.size(); ++i)
{
cmTargets* targets =
&(this->LocalGenerators[i]->GetMakefile()->GetTargets());
cmMakefile* mf = this->LocalGenerators[i]->GetMakefile();
cmTargets* targets = &(mf->GetTargets());
cmTargets::iterator tit;
for ( tit = globalTargets.begin(); tit != globalTargets.end(); ++ tit )
{
(*targets)[tit->first] = tit->second;
(*targets)[tit->first].SetMakefile(mf);
}
}