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 | 26c08ffa405224ced8540d794981bd947fd39168 (patch) | |
tree | d5bb50905946af96419320eb118ac27d577019f4 /cmake/make_dist.cmake.in | |
parent | faa5e844bb3b0327e7072230719a36dd58a29bfd (diff) | |
download | mariadb-git-26c08ffa405224ced8540d794981bd947fd39168.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) |