blob: 2ceb23100ce594370680aa8ab92a2739b2bbdd04 [file] [log] [blame]
Andrew Scull0372a572018-11-16 15:47:06 +00001set(PACKAGE_VERSION "8.0.4svn")
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01002
3# LLVM is API-compatible only with matching major.minor versions
4# and patch versions not less than that requested.
Andrew Scullcdfcccc2018-10-05 20:58:37 +01005if("8.0" VERSION_EQUAL
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006 "${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}"
Andrew Scull0372a572018-11-16 15:47:06 +00007 AND NOT "4" VERSION_LESS "${PACKAGE_FIND_VERSION_PATCH}")
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01008 set(PACKAGE_VERSION_COMPATIBLE 1)
Andrew Scull0372a572018-11-16 15:47:06 +00009 if("4" VERSION_EQUAL
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010010 "${PACKAGE_FIND_VERSION_PATCH}")
11 set(PACKAGE_VERSION_EXACT 1)
12 endif()
13endif()