| 202 | } |
| 203 | |
| 204 | void 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 | |
| 222 | std::string cmFastbuildTargetGenerator::GetCdCommand( |
| 223 | cmCustomCommandGenerator const& ccg) const |
nothing calls this directly
no test coverage detected