diff options
author | scheffle <scheffle@users.noreply.github.com> | 2021-05-07 13:28:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-10 14:28:28 (GMT) |
commit | 66be34853ce0046c132a5713d41e5c3608612bbf (patch) | |
tree | b7b4347aee9fb7247ee8a44d9ec5415df29b6df9 /Source/cmake.cxx | |
parent | eac20afe9af631fbc7ea1b172e066875895077ce (diff) | |
download | CMake-66be34853ce0046c132a5713d41e5c3608612bbf.zip CMake-66be34853ce0046c132a5713d41e5c3608612bbf.tar.gz CMake-66be34853ce0046c132a5713d41e5c3608612bbf.tar.bz2 |
cmake: add supported platforms to cmake -E capabilties report
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 4130f5f..0eede0a 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -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 { |