| 825 | static unsigned int const CodeModelV2Minor = 10; |
| 826 | |
| 827 | void cmFileAPI::BuildClientRequestCodeModel( |
| 828 | ClientRequest& r, std::vector<RequestVersion> const& versions) |
| 829 | { |
| 830 | // Select a known version from those requested. |
| 831 | for (RequestVersion const& v : versions) { |
| 832 | if ((v.Major == 2 && v.Minor <= CodeModelV2Minor)) { |
| 833 | r.Version = v.Major; |
| 834 | break; |
| 835 | } |
| 836 | } |
| 837 | if (!r.Version) { |
| 838 | r.Error = NoSupportedVersion(versions); |
| 839 | } |
| 840 | } |
| 841 | |
| 842 | Json::Value cmFileAPI::BuildCodeModel(Object object) |
| 843 | { |