Commit 517584dd authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Provide a way to reenable DISABLED plugin with -DPLUGIN_${NAME}=STATIC|DYNAMIC

parent a1232645
...@@ -74,7 +74,9 @@ MACRO(MYSQL_ADD_PLUGIN) ...@@ -74,7 +74,9 @@ MACRO(MYSQL_ADD_PLUGIN)
SET(compat "with${compat}") SET(compat "with${compat}")
ENDIF() ENDIF()
IF (compat STREQUAL ".") IF (ARG_DISABLED)
SET(howtobuild NO)
ELSEIF (compat STREQUAL ".")
SET(howtobuild DYNAMIC) SET(howtobuild DYNAMIC)
ELSEIF (compat STREQUAL "with.") ELSEIF (compat STREQUAL "with.")
IF (NOT ARG_MODULE_ONLY) IF (NOT ARG_MODULE_ONLY)
...@@ -122,7 +124,7 @@ MACRO(MYSQL_ADD_PLUGIN) ...@@ -122,7 +124,7 @@ MACRO(MYSQL_ADD_PLUGIN)
# Build either static library or module # Build either static library or module
IF (PLUGIN_${plugin} MATCHES "(STATIC|AUTO|YES)" AND NOT ARG_MODULE_ONLY IF (PLUGIN_${plugin} MATCHES "(STATIC|AUTO|YES)" AND NOT ARG_MODULE_ONLY
AND NOT ARG_DISABLED AND NOT ARG_CLIENT) AND NOT ARG_CLIENT)
IF(CMAKE_GENERATOR MATCHES "Makefiles|Ninja") IF(CMAKE_GENERATOR MATCHES "Makefiles|Ninja")
# If there is a shared library from previous shared build, # If there is a shared library from previous shared build,
...@@ -178,8 +180,7 @@ MACRO(MYSQL_ADD_PLUGIN) ...@@ -178,8 +180,7 @@ MACRO(MYSQL_ADD_PLUGIN)
SET (mysql_optional_plugins ${mysql_optional_plugins} PARENT_SCOPE) SET (mysql_optional_plugins ${mysql_optional_plugins} PARENT_SCOPE)
ENDIF() ENDIF()
ELSEIF(PLUGIN_${plugin} MATCHES "(DYNAMIC|AUTO|YES)" ELSEIF(PLUGIN_${plugin} MATCHES "(DYNAMIC|AUTO|YES)"
AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS)
AND NOT ARG_DISABLED)
ADD_VERSION_INFO(${target} MODULE SOURCES) ADD_VERSION_INFO(${target} MODULE SOURCES)
ADD_LIBRARY(${target} MODULE ${SOURCES}) ADD_LIBRARY(${target} MODULE ${SOURCES})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment