From 0a61116f527d78bc21a1a111f03e2c801386e5ba Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 12 Apr 2024 11:00:51 -0400 Subject: cmGeneratorTarget: Remove EvaluateInterfaceProperty argument default Pass it explicitly at the call sites. --- Source/cmGeneratorExpressionNode.cxx | 10 ++++++---- Source/cmGeneratorTarget.h | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx index 5c97e22..0114d82 100644 --- a/Source/cmGeneratorExpressionNode.cxx +++ b/Source/cmGeneratorExpressionNode.cxx @@ -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( diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index fd4b2ec..fc65b15 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -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; -- cgit v0.12