Specifying what plugins to build
By default all plugins are enabled and built as dynamic .so
modules. And if a plugin does not support dynamic builds — it is not built at all.
To specify that a specific plugin should be enabled and built statically into the server executable, use -DWITH_xxx=1
cmake option (where xxx
is the plugin name). Of course, static linking only works if the plugin itself supports it — some plugins can only be built as dynamic modules.
If you want to avoid building some specific plugin — specify -DWITHOUT_xxx=1
cmake option.
Note, that unlike autotools, cmake tries to configure and build incrementally. You can modify one configuration option and cmake will only rebuild the part of the tree, affected by it. For example, when you do cmake -DWITH_EMBEDDED_SERVER=1
in the already-built tree, it will make libmysqld to be built, but no other configuration options will be changed or reset to their default values.
In particular, it means, that if you have run, for example
cmake -DWITHOUT_OQGRAPH=1
and later you want to restore the default behavior (with OQGraph being built) in the same build tree, you would need to run
cmake -UWITHOUT_OQGRAPH
Alternatively, you might simply delete the CMakeCache.txt
file — this is the file where cmake stores current build configuration — and rebuild everything from scratch.