|
|
@@ -259,6 +259,13 @@ Json::Value cmake::ReportCapabilitiesJson() const
|
|
|
gen["name"] = gi.name;
|
|
|
gen["toolsetSupport"] = gi.supportsToolset;
|
|
|
gen["platformSupport"] = gi.supportsPlatform;
|
|
|
+ if (!gi.supportedPlatforms.empty()) {
|
|
|
+ Json::Value supportedPlatforms = Json::arrayValue;
|
|
|
+ for (std::string const& platform : gi.supportedPlatforms) {
|
|
|
+ supportedPlatforms.append(platform);
|
|
|
+ }
|
|
|
+ gen["supportedPlatforms"] = std::move(supportedPlatforms);
|
|
|
+ }
|
|
|
gen["extraGenerators"] = Json::arrayValue;
|
|
|
generatorMap[gi.name] = gen;
|
|
|
} else {
|