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

4.4.1 Create the Build Directory

One nice CMake feature is out-of-source build support, which means not building in the source tree, but in a dedicated build directory. The build directory can actually be a subdirectory of the source tree rather than a directory located outside it; the point is that files generated during the build process (such as .o files) are created under the build directory, not in the original source directories.

Building out of source keeps the source tree clean and allows for more than a single build tree from the same source tree (for example, debug and release, 32-bit and 64-bit). We'll create a subdirectory bld in the source tree for this purpose:

mkdir bld
cd bld

Commands for the remainder of this procedure assume that bld is the build directory and that .. is the path to the source tree root directory.

Download this Manual
EPUB - 0.8Mb
User Comments
Sign Up Login You must be logged in to post a comment.