Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
517584dd
Commit
517584dd
authored
Mar 10, 2016
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a way to reenable DISABLED plugin with -DPLUGIN_${NAME}=STATIC|DYNAMIC
parent
a1232645
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cmake/plugin.cmake
cmake/plugin.cmake
+5
-4
No files found.
cmake/plugin.cmake
View file @
517584dd
...
...
@@ -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
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment