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

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:5641–5658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
5661static TargetFileArtifact<ArtifactFilePrefixTag> const targetFilePrefixNode;

Callers

nothing calls this directly

Calls 1

GetTargetMethod · 0.45

Tested by

no test coverage detected