[CMake] Pass CLANG_VERSION_* variables into later stages
authorChris Bieneman <beanz@apple.com>
Wed, 21 Sep 2016 20:43:43 +0000 (20:43 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 21 Sep 2016 20:43:43 +0000 (20:43 +0000)
When supporting overriding clang versions we also need to pass those through to the next stage so they remain overridden.

llvm-svn: 282109

clang/CMakeLists.txt

index 7efef3c..12f79df 100644 (file)
@@ -549,6 +549,9 @@ if (CLANG_ENABLE_BOOTSTRAP)
     LLVM_VERSION_MAJOR
     LLVM_VERSION_MINOR
     LLVM_VERSION_PATCH
+    CLANG_VERSION_MAJOR
+    CLANG_VERSION_MINOR
+    CLANG_VERSION_PATCHLEVEL
     LLVM_VERSION_SUFFIX
     LLVM_BINUTILS_INCDIR
     CLANG_REPOSITORY_STRING