summaryrefslogtreecommitdiff
path: root/cmake/plugin.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-04-06 23:11:57 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-04-06 23:11:57 +0000
commit73c57e2be7f1905b605d1f1d843ef6313cb08d2c (patch)
tree95e61504ac3ed4fdc84d0187336b7508bc1e7e78 /cmake/plugin.cmake
parentb64910ce27a4df33e3ad2e3f40764e8b3271a9aa (diff)
downloadmariadb-git-73c57e2be7f1905b605d1f1d843ef6313cb08d2c.tar.gz
Fix building aws_key_management on Linux
in MYSQL_ADD_PLUGIN, do not add TARGET_LINK_LIBRARIES twice for the LINK_LIBRARIES parameter It is usually harmless to add libraries twice. However, aws_key_management uses -Wl,-whole-archive to workaround linker issues on Linux If libraries are added twice with whole-archive, linking will fail complaining about duplicate symbols
Diffstat (limited to 'cmake/plugin.cmake')
-rw-r--r--cmake/plugin.cmake3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index bca488e66c9..354ee53c7bb 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -210,9 +210,6 @@ MACRO(MYSQL_ADD_PLUGIN)
ENDIF()
ENDIF()
- IF(ARG_LINK_LIBRARIES)
- TARGET_LINK_LIBRARIES (${target} ${ARG_LINK_LIBRARIES})
- ENDIF()
ADD_DEPENDENCIES(${target} GenError ${ARG_DEPENDENCIES})
SET_TARGET_PROPERTIES(${target} PROPERTIES