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:
@@ -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
|
||||
|
Reference in New Issue
Block a user