android - MySQL cmake编译时这些参数是什么意思?
高洛峰
高洛峰 2017-04-17 11:33:17
[MySQL讨论组]

如下图:除了红色部分外,其他的参数具体是什么意思啊?

或者用什么方法找出这些参数的解释?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

全部回复(2)
高洛峰

ccmake source_dir,用t键切换到advanced mode,你就可以看到每一个选项的说明。
在Ubuntu下,ccmakecmake-curses-gui包里,其它发行版查手册。

PHP中文网

用cmake . -LH或ccmake . 都可以。

[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
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号