cmGeneratorTarget: Remove EvaluateInterfaceProperty argument default

Pass it explicitly at the call sites.
This commit is contained in:
Brad King
2024-04-12 11:00:51 -04:00
parent 1d31a00ee4
commit 0a61116f52
2 changed files with 7 additions and 5 deletions

View File

@@ -2714,8 +2714,9 @@ static std::string getLinkedTargetsContent(
target->GetLocalGenerator(), context->Config, context->Quiet, target,
target, context->EvaluateForBuildsystem, lib.Backtrace,
context->Language);
std::string libResult =
lib.Target->EvaluateInterfaceProperty(prop, &libContext, dagChecker);
std::string libResult = lib.Target->EvaluateInterfaceProperty(
prop, &libContext, dagChecker,
cmGeneratorTarget::LinkInterfaceFor::Usage);
if (!libResult.empty()) {
if (result.empty()) {
result = std::move(libResult);
@@ -2920,8 +2921,9 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
if (isInterfaceProperty) {
return cmGeneratorExpression::StripEmptyListElements(
target->EvaluateInterfaceProperty(propertyName, context,
dagCheckerParent));
target->EvaluateInterfaceProperty(
propertyName, context, dagCheckerParent,
cmGeneratorTarget::LinkInterfaceFor::Usage));
}
cmGeneratorExpressionDAGChecker dagChecker(

View File

@@ -883,7 +883,7 @@ public:
std::string EvaluateInterfaceProperty(
std::string const& prop, cmGeneratorExpressionContext* context,
cmGeneratorExpressionDAGChecker* dagCheckerParent,
LinkInterfaceFor interfaceFor = LinkInterfaceFor::Usage) const;
LinkInterfaceFor interfaceFor) const;
bool HaveInstallTreeRPATH(const std::string& config) const;