Documentation Home
MySQL Internals Manual


4.4.2 Configure the Build

In the bld directory, run cmake to configure the build:

  • On Unix machine:

    cmake ..
  • On Windows machine, to build with VS2010 and x64:

    cmake .. -G "Visual Studio 10 2010 Win64"
  • On OS X, to use the Xcode IDE:

    cmake .. -G Xcode

You can add configuration options to the cmake command line (for option descriptions, see MySQL Source-Configuration Options). For example:

cmake .. -DWITH_EMBEDDED_SERVER=1

When invoked, CMake runs system checks and generates Makefiles. CMake permits the configuration process to be iterative, so you can add more options after the initial configuration has been performed. For example, running the following command after the initial configuration step adds ARCHIVE to the list of statically compiled storage engines:

cmake .. -DWITH_ARCHIVE_STORAGE_ENGINE=1

System checks do not rerun after the initial configuration completes.


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.