Genex: Refactor empty element strip

In cmGeneratorExpressionEvaluator, teach getLinkedTargetsContent to call
cmGeneratorExpression::StripEmptyListElements to transform its return
value so that callers do not have to do so.
This commit is contained in:
Brad King 2014-07-15 15:22:08 -04:00
parent 60bafeb684
commit d5f0743d0f
1 changed files with 2 additions and 3 deletions

View File

@ -841,6 +841,8 @@ getLinkedTargetsContent(
context->HadContextSensitiveCondition = true;
}
}
linkedTargetsContent =
cmGeneratorExpression::StripEmptyListElements(linkedTargetsContent);
return linkedTargetsContent;
}
@ -1100,9 +1102,6 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
}
}
linkedTargetsContent =
cmGeneratorExpression::StripEmptyListElements(linkedTargetsContent);
if (!prop)
{
if (target->IsImported()