summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2016-03-10 17:12:58 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2016-03-13 20:26:21 +0100
commit517584dde0b42f261ac92751c7c7b1959f7c2d9b (patch)
tree33758bf1a23c39b01042dbb11cd45060f3e2869a /cmake
parenta12326458dde270c9df7aeef3684d5c5d8fd4402 (diff)
downloadmariadb-git-517584dde0b42f261ac92751c7c7b1959f7c2d9b.tar.gz
Provide a way to reenable DISABLED plugin with -DPLUGIN_${NAME}=STATIC|DYNAMIC
Diffstat (limited to 'cmake')
-rw-r--r--cmake/plugin.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index c24239cca84..361cb597cac 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -74,7 +74,9 @@ MACRO(MYSQL_ADD_PLUGIN)
SET(compat "with${compat}")
ENDIF()
- IF (compat STREQUAL ".")
+ IF (ARG_DISABLED)
+ SET(howtobuild NO)
+ ELSEIF (compat STREQUAL ".")
SET(howtobuild DYNAMIC)
ELSEIF (compat STREQUAL "with.")
IF (NOT ARG_MODULE_ONLY)
@@ -122,7 +124,7 @@ MACRO(MYSQL_ADD_PLUGIN)
# Build either static library or module
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 there is a shared library from previous shared build,
@@ -178,8 +180,7 @@ MACRO(MYSQL_ADD_PLUGIN)
SET (mysql_optional_plugins ${mysql_optional_plugins} PARENT_SCOPE)
ENDIF()
ELSEIF(PLUGIN_${plugin} MATCHES "(DYNAMIC|AUTO|YES)"
- AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS
- AND NOT ARG_DISABLED)
+ AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS)
ADD_VERSION_INFO(${target} MODULE SOURCES)
ADD_LIBRARY(${target} MODULE ${SOURCES})