summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-22 12:47:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-22 12:47:58 (GMT)
commit1f8bbfec0f7182b401e483a7ef17dc05daaeac92 (patch)
tree58325bc3ccccfa801d82ebe5e6642ccb178513ea /Source
parent8bbbc49cc1ec8f0f28c551124a65cb6a7bbb17a0 (diff)
parentaf1a4f52be86c0054006ad98a64316b5531e1bf4 (diff)
downloadCMake-1f8bbfec0f7182b401e483a7ef17dc05daaeac92.zip
CMake-1f8bbfec0f7182b401e483a7ef17dc05daaeac92.tar.gz
CMake-1f8bbfec0f7182b401e483a7ef17dc05daaeac92.tar.bz2
Merge topic 'TARGET_PROPERTY-strip-empty-list-elements'
af1a4f52be Genex: $<TARGET_PROPERTY> strip emtpy list elements for predefined properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5030
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index a1a0ae8..fdc8f29 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -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()) {