| 1769 | } |
| 1770 | |
| 1771 | void 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 | |
| 1794 | bool cmGlobalGenerator::ComputeTargetDepends() |
no test coverage detected