Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


MySQL Internals Manual  /  ...  /  Predefined Option and Compiler Flag Sets

4.4.6.3 Predefined Option and Compiler Flag Sets

It might be handy to specify a predefined set of options and do some compiler flag adjustments by passing just a single option to cmake. For MySQL, this is done using cmake -DBUILD_CONFIG=some_config. With BUILD_CONFIG defined, cmake executes the script in cmake/build_configurations/some_config.cmake. Assuming that we want to include the embedded library and exclude the ARCHIVE storage engine from the build, this script could look like this:

SET(WITH_EMBEDDED_SERVER 1 CACHE BOOL "")
SET(WITHOUT_ARCHIVE_STORAGE_ENGINE 1 CACHE BOOL "")

Currently, there is just a single predefined configuration, mysql_release. It reflects configuration options and compiler flags used by MySQL releases.


User Comments
Sign Up Login You must be logged in to post a comment.