diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-04-06 23:11:57 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-04-06 23:11:57 +0000 |
commit | 73c57e2be7f1905b605d1f1d843ef6313cb08d2c (patch) | |
tree | 95e61504ac3ed4fdc84d0187336b7508bc1e7e78 /cmake/plugin.cmake | |
parent | b64910ce27a4df33e3ad2e3f40764e8b3271a9aa (diff) | |
download | mariadb-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.cmake | 3 |
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 |