Add a null check to the generator target accessor.
This commit is contained in:
parent
1da77bf1ee
commit
aa29e64d77
|
@ -4061,8 +4061,11 @@ bool cmMakefile::IsAlias(const char *name)
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmGeneratorTarget* cmMakefile::FindGeneratorTargetToUse(const char* name)
|
cmGeneratorTarget* cmMakefile::FindGeneratorTargetToUse(const char* name)
|
||||||
{
|
{
|
||||||
cmTarget *t = this->FindTargetToUse(name);
|
if (cmTarget *t = this->FindTargetToUse(name))
|
||||||
return this->LocalGenerator->GetGlobalGenerator()->GetGeneratorTarget(t);
|
{
|
||||||
|
return this->LocalGenerator->GetGlobalGenerator()->GetGeneratorTarget(t);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue