diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2012-03-22 16:16:11 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2012-03-22 16:16:11 +0100 |
commit | b80c6a2941e828bfc4db166c200ef98b52d5b9d7 (patch) | |
tree | d5bb50905946af96419320eb118ac27d577019f4 /cmake/make_dist.cmake.in | |
parent | 605797313d34a3418ef2d189e95e0963118ac9d5 (diff) | |
download | mariadb-git-b80c6a2941e828bfc4db166c200ef98b52d5b9d7.tar.gz |
Merged some fixes from 7.2 release branches
Diffstat (limited to 'cmake/make_dist.cmake.in')
-rw-r--r-- | cmake/make_dist.cmake.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/make_dist.cmake.in b/cmake/make_dist.cmake.in index 5aa1fc8fd0e..1b347e41836 100644 --- a/cmake/make_dist.cmake.in +++ b/cmake/make_dist.cmake.in @@ -120,8 +120,13 @@ 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) +SET(SPECFILENAME "mysql.${VERSION}.spec") +IF("${VERSION}" MATCHES "-ndb-") + STRING(REGEX REPLACE "^.*-ndb-" "" NDBVERSION "${VERSION}") + SET(SPECFILENAME "mysql-cluster-${NDBVERSION}.spec") +ENDIF() +CONFIGURE_FILE(${CMAKE_BINARY_DIR}/support-files/${SPECFILENAME} + ${PACKAGE_DIR}/support-files/${SPECFILENAME} COPYONLY) # Add documentation, if user has specified where to find them IF(MYSQL_DOCS_LOCATION) |