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

Method AddCMakeProcessToCommandLines

Source/cmQtAutoGenInitializer.cxx:1699–1729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1697}
1698
1699void cmQtAutoGenInitializer::AddCMakeProcessToCommandLines(
1700 std::string const& infoFile, std::string const& processName,
1701 cmCustomCommandLines& commandLines)
1702{
1703 std::vector<std::string> autogenConfigs;
1704 this->GlobalGen->GetQtAutoGenConfigs(autogenConfigs);
1705 if (this->CrossConfig && this->UseBetterGraph) {
1706 commandLines.push_back(cmMakeCommandLine(
1707 { cmSystemTools::GetCMakeCommand(), "-E", processName, infoFile,
1708 "$<CONFIG>", "$<COMMAND_CONFIG:$<CONFIG>>" }));
1709 } else if ((this->MultiConfig && this->GlobalGen->IsXcode()) ||
1710 this->CrossConfig) {
1711 auto const& configs =
1712 processName == "cmake_autorcc" ? this->ConfigsList : autogenConfigs;
1713 for (std::string const& config : configs) {
1714 commandLines.push_back(
1715 cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E",
1716 processName, infoFile, config }));
1717 }
1718 } else {
1719 std::string autoInfoFileConfig;
1720 if (this->MultiConfig) {
1721 autoInfoFileConfig = "$<CONFIG>";
1722 } else {
1723 autoInfoFileConfig = autogenConfigs[0];
1724 }
1725 commandLines.push_back(
1726 cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E", processName,
1727 infoFile, autoInfoFileConfig }));
1728 }
1729}
1730
1731bool cmQtAutoGenInitializer::InitRccTargets()
1732{

Callers

nothing calls this directly

Calls 4

cmMakeCommandLineFunction · 0.85
push_backMethod · 0.80
GetQtAutoGenConfigsMethod · 0.45
IsXcodeMethod · 0.45

Tested by

no test coverage detected