mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
Genex: $<TARGET_PROPERTY> strip emtpy list elements for predefined properties
Fixes: #20951
This commit is contained in:
@@ -1476,8 +1476,9 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
||||
}
|
||||
|
||||
if (isInterfaceProperty) {
|
||||
return target->EvaluateInterfaceProperty(propertyName, context,
|
||||
dagCheckerParent);
|
||||
return cmGeneratorExpression::StripEmptyListElements(
|
||||
target->EvaluateInterfaceProperty(propertyName, context,
|
||||
dagCheckerParent));
|
||||
}
|
||||
|
||||
cmGeneratorExpressionDAGChecker dagChecker(
|
||||
@@ -1563,8 +1564,9 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
||||
}
|
||||
|
||||
if (!interfacePropertyName.empty()) {
|
||||
result = this->EvaluateDependentExpression(result, context->LG, context,
|
||||
target, &dagChecker, target);
|
||||
result = cmGeneratorExpression::StripEmptyListElements(
|
||||
this->EvaluateDependentExpression(result, context->LG, context, target,
|
||||
&dagChecker, target));
|
||||
std::string linkedTargetsContent = getLinkedTargetsContent(
|
||||
target, interfacePropertyName, context, &dagChecker);
|
||||
if (!linkedTargetsContent.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user