| 5639 | int NumExpectedParameters() const override { return 1; } |
| 5640 | |
| 5641 | std::string Evaluate( |
| 5642 | std::vector<std::string> const& parameters, cm::GenEx::Evaluation* eval, |
| 5643 | GeneratorExpressionContent const* content, |
| 5644 | cmGeneratorExpressionDAGChecker* dagChecker) const override |
| 5645 | { |
| 5646 | cmGeneratorTarget* target = |
| 5647 | this->GetTarget(parameters, eval, content, dagChecker); |
| 5648 | if (!target) { |
| 5649 | return std::string(); |
| 5650 | } |
| 5651 | |
| 5652 | std::string result = |
| 5653 | TargetFileArtifactResultGetter<ArtifactT>::Get(target, eval, content); |
| 5654 | if (eval->HadError) { |
| 5655 | return std::string(); |
| 5656 | } |
| 5657 | return result; |
| 5658 | } |
| 5659 | }; |
| 5660 | |
| 5661 | static TargetFileArtifact<ArtifactFilePrefixTag> const targetFilePrefixNode; |