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

Method ErrorCommand

Source/cmQtAutoGenerator.cxx:101–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void cmQtAutoGenerator::Logger::ErrorCommand(
102 GenT genType, cm::string_view message,
103 std::vector<std::string> const& command, std::string const& output) const
104{
105 std::string msg = cmStrCat(
106 '\n', HeadLine(cmStrCat(GeneratorName(genType), " subprocess error")),
107 message, cmHasSuffix(message, '\n') ? "\n" : "\n\n");
108 msg += cmStrCat(HeadLine("Command"), QuotedCommand(command), "\n\n");
109 msg += cmStrCat(HeadLine("Output"), output,
110 cmHasSuffix(output, '\n') ? "\n" : "\n\n");
111 {
112 std::lock_guard<std::mutex> lock(this->Mutex_);
113 cmSystemTools::Stderr(msg);
114 }
115}
116
117bool cmQtAutoGenerator::MakeParentDirectory(std::string const& filename)
118{

Callers 2

LogCommandErrorMethod · 0.80
GenerateRccMethod · 0.80

Calls 2

cmHasSuffixFunction · 0.85
cmStrCatFunction · 0.70

Tested by

no test coverage detected