summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-28 17:49:03 +0000
committerChris Lattner <sabre@nondot.org>2009-01-28 17:49:03 +0000
commitff2d99d94b2cc3c167aac92c2dff566fa9d0f39d (patch)
tree8642cc52e27e6c428a2cc10cfc2d1dd9b25770df
parent4aa1846215adde37dea5b534d5278a96addcc324 (diff)
downloadbcm5719-llvm-ff2d99d94b2cc3c167aac92c2dff566fa9d0f39d.tar.gz
bcm5719-llvm-ff2d99d94b2cc3c167aac92c2dff566fa9d0f39d.zip
Enable PACKAGE_VERSION in cmake builds, this unbreaks the clang build with cmake.
Patch by Piotr Rak! llvm-svn: 63213
-rw-r--r--llvm/CMakeLists.txt3
-rw-r--r--llvm/include/llvm/Config/config.h.cmake2
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 2072c703715..3dcc5e4f7ff 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -2,7 +2,8 @@ project(LLVM)
cmake_minimum_required(VERSION 2.6.1)
set(PACKAGE_NAME llvm)
-set(PACKAGE_VERSION svn)
+set(PACKAGE_VERSION 2.6svn)
+set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu")
if( CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE )
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake
index d5e286b7dc9..12846fe8649 100644
--- a/llvm/include/llvm/Config/config.h.cmake
+++ b/llvm/include/llvm/Config/config.h.cmake
@@ -507,7 +507,7 @@
#cmakedefine PACKAGE_NAME "${PACKAGE_NAME}"
/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
+#cmakedefine PACKAGE_STRING "${PACKAGE_STRING}"
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
OpenPOWER on IntegriCloud