| 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 | |
| 3545 | static const struct DeviceLinkNode : public cmGeneratorExpressionNode |
nothing calls this directly
no test coverage detected