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

Method AddCommentPrinting

Source/cmFastbuildTargetGenerator.cxx:204–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void cmFastbuildTargetGenerator::AddCommentPrinting(
205 std::vector<std::string>& cmdLines,
206 cmCustomCommandGenerator const& ccg) const
207{
208 std::string cmakeCommand = this->GetLocalGenerator()->ConvertToOutputFormat(
209 cmSystemTools::GetCMakeCommand(), cmOutputConverter::SHELL);
210 auto const comment = ccg.GetComment();
211 if (comment) {
212 // Comment printing should be first. Tested in
213 // RunCMake.ExternalProject:EnvVars-build test.
214 cmdLines.insert(
215 cmdLines.begin(),
216 cmakeCommand.append(" -E echo ")
217 .append(LocalGenerator->EscapeForShell(cmGeneratorExpression::Evaluate(
218 *comment, this->LocalGenerator, Config))));
219 }
220}
221
222std::string cmFastbuildTargetGenerator::GetCdCommand(
223 cmCustomCommandGenerator const& ccg) const

Callers

nothing calls this directly

Calls 7

GetLocalGeneratorMethod · 0.95
appendMethod · 0.80
EscapeForShellMethod · 0.80
ConvertToOutputFormatMethod · 0.45
GetCommentMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected