File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ MACRO(MYSQL_ADD_PLUGIN)
74
74
SET (compat "with${compat} " )
75
75
ENDIF ()
76
76
77
- IF (compat STREQUAL "." )
77
+ IF (ARG_DISABLED)
78
+ SET (howtobuild NO )
79
+ ELSEIF (compat STREQUAL "." )
78
80
SET (howtobuild DYNAMIC)
79
81
ELSEIF (compat STREQUAL "with." )
80
82
IF (NOT ARG_MODULE_ONLY)
@@ -122,7 +124,7 @@ MACRO(MYSQL_ADD_PLUGIN)
122
124
123
125
# Build either static library or module
124
126
IF (PLUGIN_${plugin} MATCHES "(STATIC|AUTO|YES)" AND NOT ARG_MODULE_ONLY
125
- AND NOT ARG_DISABLED AND NOT ARG_CLIENT)
127
+ AND NOT ARG_CLIENT)
126
128
127
129
IF (CMAKE_GENERATOR MATCHES "Makefiles|Ninja" )
128
130
# If there is a shared library from previous shared build,
@@ -178,8 +180,7 @@ MACRO(MYSQL_ADD_PLUGIN)
178
180
SET (mysql_optional_plugins ${mysql_optional_plugins} PARENT_SCOPE)
179
181
ENDIF ()
180
182
ELSEIF (PLUGIN_${plugin} MATCHES "(DYNAMIC|AUTO|YES)"
181
- AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS
182
- AND NOT ARG_DISABLED)
183
+ AND NOT ARG_STATIC_ONLY AND NOT WITHOUT_DYNAMIC_PLUGINS)
183
184
184
185
ADD_VERSION_INFO(${target} MODULE SOURCES )
185
186
ADD_LIBRARY (${target} MODULE ${SOURCES} )
You can’t perform that action at this time.
0 commit comments