• RelWithDebInfo : Enable optimizations and generate debugging information. This is the default MySQL build type. 

• Release : Enable optimizations but omit debugging information to reduce the build size. This build type was added in MySQL 8.0.13. 

• Debug : Disable optimizations and generate debugging information. This build type is also used if the WITH_DEBUG  option is enabled. That is, -DWITH_DEBUG=1  has the same effect as - DCMAKE_BUILD_TYPE=Debug . 

• -DCPACK_MONOLITHIC_INSTALL= bool 

This option affects whether the make package  operation produces multiple installation package files or a single file. If disabled, the operation produces multiple installation package files, which may be useful if you want to install only a subset of a full MySQL installation. If enabled, it produces a single file for installing everything. 

• -DFORCE_INSOURCE_BUILD= bool 

Defines whether to force an in-source build. Out-of-source builds are recommended, as they permit multiple builds from the same source, and cleanup can be performed quickly by removing the build directory. To force an in-source build, invoke CMake  with -DFORCE_INSOURCE_BUILD=ON . 

## Installation Layout Options 

The CMAKE_INSTALL_PREFIX  option indicates the base installation directory. Other options with names of the form INSTALL_ xxx  that indicate component locations are interpreted relative to the prefix and their values are relative pathnames. Their values should not include the prefix. 

• -DCMAKE_INSTALL_PREFIX= dir_name 

The installation base directory. 

This value can be set at server startup with the --basedir  option. 

• -DINSTALL_BINDIR= dir_name 

Where to install user programs. 

• -DINSTALL_DOCDIR= dir_name 

Where to install documentation. 

• -DINSTALL_DOCREADMEDIR= dir_name 

Where to install README  files. 

• -DINSTALL_INCLUDEDIR= dir_name 

Where to install header files. 

• -DINSTALL_INFODIR= dir_name 

Where to install Info files. 

• -DINSTALL_LAYOUT= name 

Select a predefined installation layout: 

