[root@AY14062621271636813fZ mysql-5.6.19]# cmake . -LH
// Choose the type of build, options are: None,Release
CMAKE_BUILD_TYPE:STRING=Release
// Set to true if this is a community build
COMMUNITY_BUILD:BOOL=ON
// Enable profiling
ENABLED_PROFILING:BOOL=ON
// Enable debug sync (debug builds only)
ENABLE_DEBUG_SYNC:BOOL=ON
// Installation directory layout. Options are: STANDALONE (as in zip or tar.gz
installer), RPM, DEB, SVR4
INSTALL_LAYOUT:STRING=STANDALONE
// MySQL maintainer-specific development environment
MYSQL_MAINTAINER_MODE:BOOL=OFF
// Compile MySQL with embedded server
WITH_EMBEDDED_SERVER:BOOL=ON
// Compile MySQL with federated storage engine
WITH_FEDERATED_STORAGE_ENGINE:BOOL=ON
// bundled (use yassl), yes (prefer os library if present, otherwise use bundled),
system (use os library), </path/to/custom/installation>
WITH_SSL:STRING=bundled
// bundled (use zlib), yes (prefer os library if present, otherwise use bundled),
system (use os library), </path/to/custom/installation>
WITH_ZLIB:STRING=bundled
// Compile MySQL with unit tests
WITH_UNIT_TESTS:BOOL=ON
参考官方文档
http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html
一般用到的参数
用
ccmake source_dir
,用t
键切换到advanced mode
,你就可以看到每一个选项的说明。在Ubuntu下,
ccmake
在cmake-curses-gui
包里,其它发行版查手册。用cmake . -LH或ccmake . 都可以。