| 930 | static unsigned int const CMakeFilesV1Minor = 1; |
| 931 | |
| 932 | void cmFileAPI::BuildClientRequestCMakeFiles( |
| 933 | ClientRequest& r, std::vector<RequestVersion> const& versions) |
| 934 | { |
| 935 | // Select a known version from those requested. |
| 936 | for (RequestVersion const& v : versions) { |
| 937 | if ((v.Major == 1 && v.Minor <= CMakeFilesV1Minor)) { |
| 938 | r.Version = v.Major; |
| 939 | break; |
| 940 | } |
| 941 | } |
| 942 | if (!r.Version) { |
| 943 | r.Error = NoSupportedVersion(versions); |
| 944 | } |
| 945 | } |
| 946 | |
| 947 | Json::Value cmFileAPI::BuildCMakeFiles(Object object) |
| 948 | { |