Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 1 | set(PACKAGE_VERSION "9.0.8svn") |
Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 2 | |
| 3 | # LLVM is API-compatible only with matching major.minor versions |
| 4 | # and patch versions not less than that requested. |
Andrew Walbran | 16937d0 | 2019-10-22 13:54:20 +0100 | [diff] [blame] | 5 | if("9.0" VERSION_EQUAL |
Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 6 | "${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}" |
Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 7 | AND NOT "8" VERSION_LESS "${PACKAGE_FIND_VERSION_PATCH}") |
Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 8 | set(PACKAGE_VERSION_COMPATIBLE 1) |
Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 9 | if("8" VERSION_EQUAL |
Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 10 | "${PACKAGE_FIND_VERSION_PATCH}") |
| 11 | set(PACKAGE_VERSION_EXACT 1) |
| 12 | endif() |
| 13 | endif() |