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

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:284–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 int NumExpectedParameters() const override { return 2; }
283
284 std::string Evaluate(
285 std::vector<std::string> const& parameters,
286 cm::GenEx::Evaluation* /*eval*/,
287 GeneratorExpressionContent const* /*content*/,
288 cmGeneratorExpressionDAGChecker* /*dagChecker*/) const override
289 {
290 return cm::CMakeString{ parameters.front() }.Compare(
291 cm::CMakeString::CompOperator::LESS, parameters[1])
292 ? "1"
293 : "0";
294 }
295} strLessNode;
296static const struct StrLessEqualNode : public cmGeneratorExpressionNode
297{

Callers

nothing calls this directly

Calls 2

CompareMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected