1 set(PACKAGE_VERSION "@PACKAGE_VERSION@") 2 3 # LLVM is API-compatible only with matching major.minor versions 4 # and patch versions not less than that requested. 5 if("@LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@" VERSION_EQUAL 6 "${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}" 7 AND NOT "@LLVM_VERSION_PATCH@" VERSION_LESS "${PACKAGE_FIND_VERSION_PATCH}") 8 set(PACKAGE_VERSION_COMPATIBLE 1) 9 if("@LLVM_VERSION_PATCH@" VERSION_EQUAL 10 "${PACKAGE_FIND_VERSION_PATCH}") 11 set(PACKAGE_VERSION_EXACT 1) 12 endif() 13 endif() 14