Storage engines are plugins, so the options that control plugin building specify which storage engines to build.
option accepts two constructs that have no direct equivalent in
--with-pluginsaccepts a comma-separated list of engine names
--with-pluginsaccepts a “group name” value that is shorthand for a set of engines
With CMake, engines are controlled with individual options.
Suppose that the configure option is:
This builds the named engines as static plugins that are compiled into the server and need not be installed explicitly.
To convert this for CMake, omit these engine names because they are mandatory (always compiled in):
csv myisam myisammrg heap
Then use these options to enable the
-DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1
You can also use
ON rather than 1 as the option
If you used
in configure to exclude a storage engine from
the build, use
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 -DWITHOUT_PARTITION_STORAGE_ENGINE=1
is specified for a given storage engine, the engine is built as a
shared module, or excluded if it cannot be built as a shared
module. A shared module must be installed using the
INSTALL PLUGIN statement or the
--plugin-load option before it can be used.
For additional information about CMake options for plugins, see Chapter 5, Plugins.