summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-04-06 09:50:27 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-04-06 09:50:27 +0000
commitb666732182b34d30c5ada8da37835ec388cc077a (patch)
treede7b6c6fac856e1bff034de982b988f7df3573d4 /cmake
parent25d69ea0124941cca54dbf0c2ebb2aa20ab2d6a8 (diff)
downloadmariadb-git-b666732182b34d30c5ada8da37835ec388cc077a.tar.gz
Do not link client plugins to mysqld
they might not be able to load after this.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/plugin.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index 53969f3a13c..8615d6ed4b2 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -201,11 +201,13 @@ MACRO(MYSQL_ADD_PLUGIN)
# executable to the linker command line (it would result into link error).
# Thus we skip TARGET_LINK_LIBRARIES on Linux, as it would only generate
# an additional dependency.
- IF(MSVC)
- ADD_DEPENDENCIES(${target} gen_mysqld_lib)
- TARGET_LINK_LIBRARIES(${target} mysqld_import_lib)
- ELSEIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
- TARGET_LINK_LIBRARIES (${target} mysqld)
+ IF(NOT ARG_CLIENT)
+ IF(MSVC)
+ ADD_DEPENDENCIES(${target} gen_mysqld_lib)
+ TARGET_LINK_LIBRARIES(${target} mysqld_import_lib)
+ ELSEIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ TARGET_LINK_LIBRARIES (${target} mysqld)
+ ENDIF()
ENDIF()
IF(ARG_LINK_LIBRARIES)