| 2762 | } |
| 2763 | |
| 2764 | void 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 | |
| 2788 | bool HandleGenerateCommand(std::vector<std::string> const& args, |
| 2789 | cmExecutionStatus& status) |
no test coverage detected
searching dependent graphs…