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

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 int NumExpectedParameters() const override { return 2; }
337
338 std::string Evaluate(
339 std::vector<std::string> const& parameters,
340 cm::GenEx::Evaluation* /*eval*/,
341 GeneratorExpressionContent const* /*content*/,
342 cmGeneratorExpressionDAGChecker* /*dagChecker*/) const override
343 {
344 return cm::CMakeString{ parameters.front() }.Compare(
345 cm::CMakeString::CompOperator::GREATER_EQUAL, parameters[1])
346 ? "1"
347 : "0";
348 }
349} strGreaterEqualNode;
350
351static const struct EqualNode : public cmGeneratorExpressionNode

Callers

nothing calls this directly

Calls 2

CompareMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected