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

Method WriteInstallJson

Source/cmGlobalGenerator.cxx:1771–1791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1769}
1770
1771void cmGlobalGenerator::WriteInstallJson() const
1772{
1773 Json::Value index(Json::objectValue);
1774 index["InstallScripts"] = Json::arrayValue;
1775 for (auto const& file : this->InstallScripts) {
1776 index["InstallScripts"].append(file);
1777 }
1778 index["Parallel"] =
1779 this->GetCMakeInstance()->GetState()->GetGlobalPropertyAsBool(
1780 "INSTALL_PARALLEL");
1781 if (this->SupportsDefaultConfigs()) {
1782 index["Configs"] = Json::arrayValue;
1783 for (auto const& config : this->GetDefaultConfigs()) {
1784 index["Configs"].append(config);
1785 }
1786 }
1787 this->WriteJsonContent(
1788 cmStrCat(this->CMakeInstance->GetHomeOutputDirectory(),
1789 "/CMakeFiles/InstallScripts.json"),
1790 index);
1791}
1792#endif
1793
1794bool cmGlobalGenerator::ComputeTargetDepends()

Callers 1

GenerateMethod · 0.80

Calls 7

GetCMakeInstanceMethod · 0.95
WriteJsonContentMethod · 0.95
appendMethod · 0.80
cmStrCatFunction · 0.70
GetStateMethod · 0.45

Tested by

no test coverage detected