BUG: Make sure targets of type GLOBAL_TARGET have a makefile set.
This commit is contained in:
parent
6e2f819942
commit
ed6791c898
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user