blob: 2ee9b97c9ff49f928039abb132e0881a4975b63c [file] [log] [blame]
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02001set(PACKAGE_VERSION "12.0.5git")
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.
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02005if("12.0" VERSION_EQUAL
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006 "${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}"
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02007 AND NOT "5" VERSION_LESS "${PACKAGE_FIND_VERSION_PATCH}")
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01008 set(PACKAGE_VERSION_COMPATIBLE 1)
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02009 if("5" VERSION_EQUAL
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010010 "${PACKAGE_FIND_VERSION_PATCH}")
11 set(PACKAGE_VERSION_EXACT 1)
12 endif()
13endif()