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

View File

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