diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt index 1bec2d7b082..4c75ae39755 100644 --- a/sql/CMakeLists.txt +++ b/sql/CMakeLists.txt @@ -132,7 +132,7 @@ IF(NOT WITHOUT_DYNAMIC_PLUGINS) ENDIF() SET_TARGET_PROPERTIES(mysqld PROPERTIES ENABLE_EXPORTS TRUE) -TARGET_LINK_LIBRARIES(mysqld sql) +TARGET_LINK_LIBRARIES(mysqld sql mysys) # Provide plugins with minimal set of libraries SET(INTERFACE_LIBS ${LIBRT})