[yaml2obj/obj2yaml] - Do not trigger llvm_unreachable when dumping/parsing relocation...
[llvm-complete.git] / cmake / modules / LLVMConfigVersion.cmake.in
blobe9ac4ed2da7865ea2c80a3e4fb628f599e3e2999
1 set(PACKAGE_VERSION "@PACKAGE_VERSION@")
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()