• -DWITH_LTO= bool 

Whether to enable the link-time optimizer, if the compiler supports it. The default is OFF  unless FPROFILE_USE  is enabled. 

This option was added in MySQL 8.0.13. 

• -DWITH_LZ4= lz4_type 

The WITH_LZ4  indicates the source of zlib  support: 

• bundled : Use the lz4  library bundled with the distribution. This is the default. 

• system : Use the system lz4  library. If WITH_LZ4  is set to this value, the lz4_decompress  utility is not built. In this case, the system lz4  command can be used instead. 

• -DWITH_LZMA= lzma_type 

The type of LZMA library support to include. lzma_type  can be one of the following values: 

• bundled : Use the LZMA library bundled with the distribution. This is the default. 

• system : Use the system LZMA library. 

This option was removed in MySQL 8.0.16. 

• -DWITH_MECAB={disabled|system| path_name } 

Use this option to compile the MeCab parser. If you have installed MeCab to its default installation directory, set -DWITH_MECAB=system . The system  option applies to MeCab installations performed from source or from binaries using a native package management utility. If you installed MeCab to a custom installation directory, specify the path to the MeCab installation. For example, -DWITH_MECAB=/ opt/mecab . If the system  option does not work, specifying the MeCab installation path should work in all cases. 

For related information, see Section 12.10.9, “MeCab Full-Text Parser Plugin” . 

• -DWITH_MSAN= bool 

Whether to enable MemorySanitizer, for compilers that support it. The default is off. 

For this option to have an effect if enabled, all libraries linked to MySQL must also have been compiled with the option enabled. 

• -DWITH_MSCRT_DEBUG= bool 

Whether to enable Visual Studio CRT memory leak tracing. The default is OFF . 

• -DWITH_MYSQLX= bool 

Whether to build with support for X Plugin. Default ON . See Chapter 20, Using MySQL as a Document Store . 

• -DWITH_NUMA= bool 

Explicitly set the NUMA memory allocation policy. CMake  sets the default WITH_NUMA  value based on whether the current platform has NUMA  support. For platforms without NUMA support, CMake  behaves as follows: 

