summaryrefslogtreecommitdiff
path: root/cmake/mysql_add_executable.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-07-13 21:37:22 +0200
committerSergei Golubchik <serg@mariadb.org>2018-07-19 11:35:38 +0200
commit33eccb577657a127a877cea53ee4dc41cb4604c2 (patch)
treedee37b5c7a1f50248685b2e1c4190f87359ff906 /cmake/mysql_add_executable.cmake
parentbd5cf02bbe7bce029b0275be1b15d2108806d5e9 (diff)
downloadmariadb-git-33eccb577657a127a877cea53ee4dc41cb4604c2.tar.gz
MDEV-11790 WITHOUT_SERVER installs mysqld_safe_helper
Don't install server files if WITHOUT_SERVER is specified. "Server files" are defined as files going into the MariaDB-Server RPM, that is files in the components Server, ManPagesServer, Server_Scripts, IniFiles, SuportFiles, and Readme.
Diffstat (limited to 'cmake/mysql_add_executable.cmake')
-rw-r--r--cmake/mysql_add_executable.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/mysql_add_executable.cmake b/cmake/mysql_add_executable.cmake
index 45575bdd536..c8a2e522d66 100644
--- a/cmake/mysql_add_executable.cmake
+++ b/cmake/mysql_add_executable.cmake
@@ -59,6 +59,9 @@ FUNCTION (MYSQL_ADD_EXECUTABLE)
ELSE()
SET(COMP COMPONENT Client)
ENDIF()
+ IF (COMP MATCHES ${SKIP_COMPONENTS})
+ RETURN()
+ ENDIF()
MYSQL_INSTALL_TARGETS(${target} DESTINATION ${ARG_DESTINATION} ${COMP})
ENDIF()
ENDFUNCTION()