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

Method Evaluate

Source/cmGeneratorExpression.cxx:50–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::string cmGeneratorExpression::Evaluate(
51 std::string input, cmLocalGenerator const* lg, std::string const& config,
52 cmGeneratorTarget const* headTarget,
53 cmGeneratorExpressionDAGChecker* dagChecker,
54 cmGeneratorTarget const* currentTarget, std::string const& language)
55{
56 if (Find(input) != std::string::npos) {
57#ifndef CMAKE_BOOTSTRAP
58 auto profilingRAII = lg->GetCMakeInstance()->CreateProfilingEntry(
59 "genex_compile_eval", input);
60#endif
61
62 cm::GenEx::Context context(lg, config, language);
63 cmCompiledGeneratorExpression cge(*lg->GetCMakeInstance(),
64 cmListFileBacktrace(), std::move(input));
65 return cge.Evaluate(context, dagChecker, headTarget, currentTarget);
66 }
67 return input;
68}
69
70std::string const& cmCompiledGeneratorExpression::Evaluate(
71 cmLocalGenerator const* lg, std::string const& config,

Callers 1

Calls 4

moveFunction · 0.85
CreateProfilingEntryMethod · 0.80
cmListFileBacktraceClass · 0.70
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected