summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-09-07 13:21:48 +0200
committerSergei Golubchik <serg@mariadb.org>2021-09-07 21:13:04 +0200
commit0d3de06eda5592bca8206209c8ffb666565a94ed (patch)
treed27c813e32672db6fda9617a5aa543d43d776b6b /cmake
parentca2f89deac8c5ee16fd71093a847ac6b4f15f8a8 (diff)
downloadmariadb-git-0d3de06eda5592bca8206209c8ffb666565a94ed.tar.gz
disable bzip2/lz4/lzo in rpm builds, distro dependent
Diffstat (limited to 'cmake')
-rw-r--r--cmake/build_configurations/mysql_release.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake
index 26c0cf16df0..d844f436031 100644
--- a/cmake/build_configurations/mysql_release.cmake
+++ b/cmake/build_configurations/mysql_release.cmake
@@ -104,6 +104,16 @@ ELSEIF(RPM)
SET(CHECKMODULE /usr/bin/checkmodule CACHE FILEPATH "")
SET(SEMODULE_PACKAGE /usr/bin/semodule_package CACHE FILEPATH "")
SET(WITH_JEMALLOC "yes" CACHE STRING "")
+ IF(RPM MATCHES "fedora|centos|rhel")
+ SET(WITH_INNODB_BZIP2 OFF CACHE STRING "")
+ SET(WITH_INNODB_LZO OFF CACHE STRING "")
+ SET(WITH_ROCKSDB_BZip2 OFF CACHE STRING "")
+ ENDIF()
+ IF(RPM MATCHES "opensuse|sles|centos|rhel")
+ SET(WITH_INNODB_LZ4 OFF CACHE STRING "")
+ SET(WITH_ROCKSDB_LZ4 OFF CACHE STRING "")
+ SET(GRN_WITH_LZ4 no CACHE STRING "")
+ ENDIF()
ELSEIF(DEB)
SET(WITH_SSL system CACHE STRING "")
SET(WITH_ZLIB system CACHE STRING "")