Merge topic 'use-generator-target'
a60cd3d
cmGeneratorTarget: Use the output directory to order cmTargets.
This commit is contained in:
commit
235c2d26dc
|
@ -698,8 +698,8 @@ bool cmStrictTargetComparison::operator()(cmTarget *t1, cmTarget *t2) const
|
||||||
int nameResult = strcmp(t1->GetName(), t2->GetName());
|
int nameResult = strcmp(t1->GetName(), t2->GetName());
|
||||||
if (nameResult == 0)
|
if (nameResult == 0)
|
||||||
{
|
{
|
||||||
return strcmp(t1->GetMakefile()->GetStartDirectory(),
|
return strcmp(t1->GetMakefile()->GetStartOutputDirectory(),
|
||||||
t2->GetMakefile()->GetStartDirectory()) < 0;
|
t2->GetMakefile()->GetStartOutputDirectory()) < 0;
|
||||||
}
|
}
|
||||||
return nameResult < 0;
|
return nameResult < 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue