| 979 | } |
| 980 | |
| 981 | Json::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 |
no test coverage detected