summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-04-21 10:04:26 +0200
committerSergei Golubchik <serg@mariadb.org>2016-04-24 18:15:20 +0200
commit011497bd6035d0eceb6488b62319a86831418fae (patch)
tree84764580513314d5bb4ba317e97aa19dc7aa5658 /cmake
parent250a89cfecd0c7902be584b5ed2ca753ee835774 (diff)
downloadmariadb-git-011497bd6035d0eceb6488b62319a86831418fae.tar.gz
MDEV-9869 INSTALL SONAME 'ha_connect'
make storage engine RPMs require the exact server version RPM: "MariaDB = %{version}-%{release}", other plugins require simply "MariaDB", as before.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/plugin.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index 0a80bbc1434..e1d2af2add6 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -194,8 +194,11 @@ MACRO(MYSQL_ADD_PLUGIN)
# Install dynamic library
IF(ARG_COMPONENT)
IF(CPACK_COMPONENTS_ALL AND NOT CPACK_COMPONENTS_ALL MATCHES ${ARG_COMPONENT})
+ IF (ARG_STORAGE_ENGINE)
+ SET(ver " = %{version}-%{release}")
+ ENDIF()
SET(CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} ${ARG_COMPONENT} PARENT_SCOPE)
- SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_REQUIRES "MariaDB" PARENT_SCOPE)
+ SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_REQUIRES "MariaDB${ver}" PARENT_SCOPE)
IF (NOT ARG_CONFIG)
SET(ARG_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/${target}.cnf")