Documentation Home
MySQL Internals Manual


4.4.6 Building With CMake

  • Unix

    make

    By default, a cmake build is less verbose than an Autotools build. To see what commands are executed during the compile stage, use this command:

    make VERBOSE=1
  • Windows (using "Visual Studio 10 2010" generator)

    devenv MySQL.sln /build RelWithDebInfo

    Alternatively, open MySQL.sln and build using the IDE.

  • Mac OS X build with Xcode

    xcodebuild -configuration RelWithDebInfo

    Alternatively, open MySQL.xcodeproj and build using the IDE.

  • Command-line build with CMake 2.8

    After creating the project with cmake as just indicated, issue this command:

    cmake --build .

    This works with any CMake generator.

For Visual Studio and Xcode, you might want to add extra configuration options, to avoid building all configurations.

cmake --build . --config RelWithDebInfo

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.