summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-02-13 18:48:10 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-02-13 18:48:10 +0000
commitfde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6 (patch)
tree3c55ba867738db4cce7c1216d82da4c9be6ed9ff /cmake
parent3ed4dee530984b7087dd3bbf4cfd8a3f1947c8e0 (diff)
downloadllvm-fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6.tar.gz
llvm-fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6.tar.bz2
llvm-fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6.tar.xz
add LLVM_VERSION_MAJOR and _MINOR defines
This is useful for clients that want to maintain compatibility across multiple releases of LLVM. Currently users like Klee and Mesa all have to roll their own 'parse llvm-config --version output and generate defines' solution. Also reuse the new macros so that version information is less redundant/likely to fall out of sync again in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LLVMConfig.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in
index 6b202b2e7e..443ec41532 100644
--- a/cmake/modules/LLVMConfig.cmake.in
+++ b/cmake/modules/LLVMConfig.cmake.in
@@ -1,5 +1,7 @@
# This file provides information and services to the final user.
+set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@)
+set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@)
set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)