| 119 | } |
| 120 | |
| 121 | bool CheckSchemaVersion(Json::Value const& data) |
| 122 | { |
| 123 | std::string const& version = ToString(data["cps_version"]); |
| 124 | |
| 125 | // Check that a valid version is specified. |
| 126 | if (version.empty()) { |
| 127 | return false; |
| 128 | } |
| 129 | |
| 130 | // Check that we understand this version. |
| 131 | return cmSystemTools::VersionCompare(cmSystemTools::OP_GREATER_EQUAL, |
| 132 | version, "0.13") && |
| 133 | cmSystemTools::VersionCompare(cmSystemTools::OP_LESS, version, "0.15"); |
| 134 | |
| 135 | // TODO Eventually this probably needs to return the version tuple, and |
| 136 | // should share code with cmPackageInfoReader::ParseVersion. |
| 137 | } |
| 138 | |
| 139 | bool ComparePathSuffix(std::string const& path, std::string const& suffix) |
| 140 | { |
no test coverage detected
searching dependent graphs…