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

Function AddEvaluationFile

Source/cmFileCommand.cxx:2764–2786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2762}
2763
2764void AddEvaluationFile(std::string const& inputName,
2765 std::string const& targetName,
2766 std::string const& outputExpr,
2767 std::string const& condition, bool inputIsContent,
2768 std::string const& newLineCharacter, mode_t permissions,
2769 cmExecutionStatus& status)
2770{
2771 cmListFileBacktrace lfbt = status.GetMakefile().GetBacktrace();
2772
2773 cmGeneratorExpression outputGe(*status.GetMakefile().GetCMakeInstance(),
2774 lfbt);
2775 std::unique_ptr<cmCompiledGeneratorExpression> outputCge =
2776 outputGe.Parse(outputExpr);
2777
2778 cmGeneratorExpression conditionGe(*status.GetMakefile().GetCMakeInstance(),
2779 lfbt);
2780 std::unique_ptr<cmCompiledGeneratorExpression> conditionCge =
2781 conditionGe.Parse(condition);
2782
2783 status.GetMakefile().AddEvaluationFile(
2784 inputName, targetName, std::move(outputCge), std::move(conditionCge),
2785 newLineCharacter, permissions, inputIsContent);
2786}
2787
2788bool HandleGenerateCommand(std::vector<std::string> const& args,
2789 cmExecutionStatus& status)

Callers 1

HandleGenerateCommandFunction · 0.85

Calls 6

moveFunction · 0.85
AddEvaluationFileMethod · 0.80
GetBacktraceMethod · 0.45
GetMakefileMethod · 0.45
GetCMakeInstanceMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…