summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/plugin.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index f4aaeb651d7..2c00c71c3ee 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -113,9 +113,12 @@ MACRO(MYSQL_ADD_PLUGIN)
SET (MYSQLD_STATIC_PLUGIN_LIBS ${MYSQLD_STATIC_PLUGIN_LIBS}
${target} CACHE INTERNAL "" FORCE)
- IF(NOT ARG_MANDATORY)
+ IF(ARG_MANDATORY)
+ SET(${with_var} ON CACHE INTERNAL "Link ${plugin} statically to the server"
+ FORCE)
+ ELSE()
SET(${with_var} ON CACHE BOOL "Link ${plugin} statically to the server"
- FORCE)
+ FORCE)
ENDIF()
IF(ARG_MANDATORY)