summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@fedora12>2009-12-25 16:49:21 +0100
committerVladislav Vaintroub <vvaintroub@fedora12>2009-12-25 16:49:21 +0100
commite8bdef8fcd05472a41d193e0f67992bfb5a3e57b (patch)
tree7759e1bcb9d4f5273bfcaada45aac3885f5cd8fe /cmake
parent57e3ba292a87ef01e1c1dc35c224be0712983349 (diff)
parent85d5a08b51e24af57120068bed4534e4c1e889f4 (diff)
downloadmariadb-git-e8bdef8fcd05472a41d193e0f67992bfb5a3e57b.tar.gz
merge
Diffstat (limited to 'cmake')
-rw-r--r--cmake/plugin.cmake13
1 files changed, 11 insertions, 2 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index 3e46f523973..b9169ebb73e 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -113,12 +113,21 @@ MACRO(MYSQL_ADD_PLUGIN)
SET (MYSQLD_STATIC_PLUGIN_LIBS ${MYSQLD_STATIC_PLUGIN_LIBS}
${target} CACHE INTERNAL "")
- SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_${target}_plugin"
- PARENT_SCOPE)
+
IF(ARG_STORAGE_ENGINE)
SET(${with_var} ON CACHE BOOL "Link ${plugin} statically to the server"
FORCE)
ENDIF()
+
+ IF(ARG_MANDATORY)
+ SET (mysql_mandatory_plugins
+ "${mysql_mandatory_plugins} builtin_${target}_plugin,"
+ PARENT_SCOPE)
+ ELSE()
+ SET (mysql_optional_plugins
+ "${mysql_optional_plugins} builtin_${target}_plugin,"
+ PARENT_SCOPE)
+ ENDIF()
ELSEIF(NOT WITHOUT_${plugin} AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS)
IF(NOT ARG_MODULE_OUTPUT_NAME)
IF(ARG_STORAGE_ENGINE)