| 896 | static unsigned int const CacheV2Minor = 0; |
| 897 | |
| 898 | void cmFileAPI::BuildClientRequestCache( |
| 899 | ClientRequest& r, std::vector<RequestVersion> const& versions) |
| 900 | { |
| 901 | // Select a known version from those requested. |
| 902 | for (RequestVersion const& v : versions) { |
| 903 | if ((v.Major == 2 && v.Minor <= CacheV2Minor)) { |
| 904 | r.Version = v.Major; |
| 905 | break; |
| 906 | } |
| 907 | } |
| 908 | if (!r.Version) { |
| 909 | r.Error = NoSupportedVersion(versions); |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | Json::Value cmFileAPI::BuildCache(Object object) |
| 914 | { |