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

Method BuildToolchains

Source/cmFileAPI.cxx:981–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979}
980
981Json::Value cmFileAPI::BuildToolchains(Object object)
982{
983 Json::Value toolchains = cmFileAPIToolchainsDump(*this, object.Version);
984 toolchains["kind"] = this->ObjectKindName(object.Kind);
985
986 Json::Value& version = toolchains["version"];
987 if (object.Version == 1) {
988 version = BuildVersion(1, ToolchainsV1Minor);
989 } else {
990 return toolchains; // should be unreachable
991 }
992
993 return toolchains;
994}
995
996// The "__test" object kind is for internal testing of CMake.
997

Callers 1

BuildObjectMethod · 0.95

Calls 2

ObjectKindNameMethod · 0.95
cmFileAPIToolchainsDumpFunction · 0.85

Tested by

no test coverage detected