Merge topic 'use-generator-target'
aa29e64 Add a null check to the generator target accessor.
This commit is contained in:
commit
a6080587aa
@ -4086,9 +4086,12 @@ bool cmMakefile::IsAlias(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 0;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user