Andrew Scull | cdfcccc | 2018-10-05 20:58:37 +0100 | [diff] [blame^] | 1 | set(PACKAGE_VERSION "8.0.1svn") |
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 Scull | cdfcccc | 2018-10-05 20:58:37 +0100 | [diff] [blame^] | 5 | if("8.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 Scull | cdfcccc | 2018-10-05 20:58:37 +0100 | [diff] [blame^] | 7 | AND NOT "1" 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 Scull | cdfcccc | 2018-10-05 20:58:37 +0100 | [diff] [blame^] | 9 | if("1" 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() |