MCPcopy Create free account
hub / github.com/Kitware/CMake / Evaluate

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:3527–3542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3525 int NumExpectedParameters() const override { return ZeroOrMoreParameters; }
3526
3527 std::string Evaluate(
3528 std::vector<std::string> const& parameters, cm::GenEx::Evaluation* eval,
3529 GeneratorExpressionContent const* content,
3530 cmGeneratorExpressionDAGChecker* dagChecker) const override
3531 {
3532 if (!eval->HeadTarget || !dagChecker ||
3533 !dagChecker->EvaluatingLinkOptionsExpression()) {
3534 reportError(eval, content->GetOriginalExpression(),
3535 "$<HOST_LINK:...> may only be used with binary targets "
3536 "to specify link options.");
3537 return std::string();
3538 }
3539
3540 return eval->HeadTarget->IsDeviceLink() ? std::string()
3541 : cmList::to_string(parameters);
3542 }
3543} hostLinkNode;
3544
3545static const struct DeviceLinkNode : public cmGeneratorExpressionNode

Callers

nothing calls this directly

Calls 5

reportErrorFunction · 0.85
to_stringFunction · 0.85
GetOriginalExpressionMethod · 0.80
IsDeviceLinkMethod · 0.80

Tested by

no test coverage detected