| 911 | } |
| 912 | |
| 913 | Json::Value cmFileAPI::BuildCache(Object object) |
| 914 | { |
| 915 | Json::Value cache = cmFileAPICacheDump(*this, object.Version); |
| 916 | cache["kind"] = this->ObjectKindName(object.Kind); |
| 917 | |
| 918 | Json::Value& version = cache["version"]; |
| 919 | if (object.Version == 2) { |
| 920 | version = BuildVersion(2, CacheV2Minor); |
| 921 | } else { |
| 922 | return cache; // should be unreachable |
| 923 | } |
| 924 | |
| 925 | return cache; |
| 926 | } |
| 927 | |
| 928 | // The "cmakeFiles" object kind. |
| 929 |
no test coverage detected