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

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:2724–2733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2722 int NumExpectedParameters() const override { return 2; }
2723
2724 std::string Evaluate(
2725 std::vector<std::string> const& parameters,
2726 cm::GenEx::Evaluation* /*eval*/,
2727 GeneratorExpressionContent const* /*content*/,
2728 cmGeneratorExpressionDAGChecker* /*dagChecker*/) const override
2729 {
2730 return cmSystemTools::VersionCompare(Op, parameters.front(), parameters[1])
2731 ? "1"
2732 : "0";
2733 }
2734};
2735
2736static VersionNode<cmSystemTools::OP_GREATER> const versionGreaterNode;

Callers

nothing calls this directly

Calls 2

VersionCompareFunction · 0.85
frontMethod · 0.45

Tested by

no test coverage detected