1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-21943 reduce the binary tarball size

strip all client binaries (that is, not mysqld) in bintars
This commit is contained in:
Sergei Golubchik
2020-03-14 17:22:45 +01:00
parent 47e220a3a7
commit 8fd654ce0e
2 changed files with 8 additions and 0 deletions

View File

@@ -79,7 +79,14 @@ FUNCTION (MYSQL_ADD_EXECUTABLE)
IF (COMP MATCHES ${SKIP_COMPONENTS})
RETURN()
ENDIF()
IF (WITH_STRIPPED_CLIENT AND NOT target STREQUAL mysqld)
INSTALL(CODE "SET(CMAKE_INSTALL_DO_STRIP 1)" ${COMP})
SET(reset_strip ON)
ENDIF()
MYSQL_INSTALL_TARGETS(${target} DESTINATION ${ARG_DESTINATION} COMPONENT ${COMP})
IF (reset_strip)
INSTALL(CODE "SET(CMAKE_INSTALL_DO_STRIP 0)" ${COMP})
ENDIF()
ENDIF()
# create mariadb named symlink