mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 15:25:33 +02:00
restore the correct linking of ed25519 plugin
* add a clarifying comment * apply /wd4244 /wd4146 to ref10 source files, not to the library
This commit is contained in:
parent
9ab9a28b5d
commit
a00517ac97
1 changed files with 5 additions and 2 deletions
|
|
@ -16,11 +16,14 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|||
ADD_CONVENIENCE_LIBRARY(ref10 ${REF10_SOURCES})
|
||||
IF(MSVC)
|
||||
# Silence conversion (integer truncantion) warnings from reference code
|
||||
SET_TARGET_PROPERTIES(ref10 PROPERTIES COMPILE_FLAGS "/wd4244 /wd4146")
|
||||
SET_SOURCE_FILES_PROPERTIES(${REF10_SOURCES} PROPERTY COMPILE_FLAGS "/wd4244 /wd4146")
|
||||
ENDIF()
|
||||
|
||||
MYSQL_ADD_PLUGIN(auth_ed25519 server_ed25519.c MODULE_ONLY LINK_LIBRARIES ref10)
|
||||
# server plugin *cannot* link with the library, it needs all sources to be
|
||||
# compiled with MYSQL_DYNAMIC_PLUGIN
|
||||
MYSQL_ADD_PLUGIN(auth_ed25519 server_ed25519.c ${REF10_SOURCES} MODULE_ONLY)
|
||||
|
||||
# client plugin and unit test ed25519-t can use the library
|
||||
MYSQL_ADD_PLUGIN(client_ed25519 client_ed25519.c MODULE_ONLY
|
||||
CLIENT LINK_LIBRARIES mysys_ssl ref10 COMPONENT ClientPlugins)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue