summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMySQL Build Team <build@mysql.com>2011-03-03 22:46:12 +0100
committerMySQL Build Team <build@mysql.com>2011-03-03 22:46:12 +0100
commita4711099716c53490a69c3c17a8b61a4a3282b19 (patch)
tree2b1f61929a6dd6abecb0a0f42eb8d59847c761fd /cmake
parent1a48afc1c64b165c1dc3b78480828367b7af4e69 (diff)
downloadmariadb-git-a4711099716c53490a69c3c17a8b61a4a3282b19.tar.gz
Implementing Bug #57175 MySQL source tarballs should include generated spec file
Diffstat (limited to 'cmake')
-rw-r--r--cmake/make_dist.cmake.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/make_dist.cmake.in b/cmake/make_dist.cmake.in
index 7c4778112df..ef1677db1c0 100644
--- a/cmake/make_dist.cmake.in
+++ b/cmake/make_dist.cmake.in
@@ -29,6 +29,8 @@ SET(CMAKE_GENERATOR "@CMAKE_GENERATOR@")
SET(CMAKE_MAKE_PROGRAM "@CMAKE_MAKE_PROGRAM@")
SET(CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM_NAME@")
+SET(VERSION "@VERSION@")
+
SET(MYSQL_DOCS_LOCATION "@MYSQL_DOCS_LOCATION@")
@@ -100,6 +102,10 @@ CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc.h
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc.cc
${PACKAGE_DIR}/sql/sql_yacc.cc COPYONLY)
+# Copy spec files
+CONFIGURE_FILE(${CMAKE_BINARY_DIR}/support-files/mysql.${VERSION}.spec
+ ${PACKAGE_DIR}/support-files/mysql.${VERSION}.spec COPYONLY)
+
# Add documentation, if user has specified where to find them
IF(MYSQL_DOCS_LOCATION)
MESSAGE("Copying documentation files from " ${MYSQL_DOCS_LOCATION})