How to specify the options when using cmake?

http://www.linuxfromscratch.org/blfs/view/7.7/server/mariadb.html I build MariaDB 10.0.17 with cmake-3 , libevent-2 , python-2 ... Dependencies all are in dir /opt/..

But , how can I specify the modules dir for MariaDB ?

`` cmake-3... -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/mariadb-10.0.17 -DINSTALL_DOCDIR=share/doc/mariadb-10.0.17 -DINSTALL_DOCREADMEDIR=share/doc/mariadb-10.0.17 -DINSTALL_MANDIR=share/man -DINSTALL_MYSQLSHAREDIR=share/mysql -DINSTALL_MYSQLTESTDIR=share/mysql/test -DINSTALL_PLUGINDIR=lib/mysql/plugin -DINSTALL_SBINDIR=sbin -DINSTALL_SCRIPTDIR=bin -DINSTALL_SQLBENCHDIR=share/mysql/bench -DINSTALL_SUPPORTFILESDIR=share/mysql -DMYSQL_DATADIR=/srv/mysql -DMYSQL_UNIX_ADDR=/srv/mysql/mysqld.sock -DWITH_EXTRA_CHARSETS=complex -DWITH_EMBEDDED_SERVER=ON -DTOKUDB_OK=0 .. ``

I try to add -DWITH_LIBEVENT=/opt/libevent-2.0.22-stable -DWITH_BOOST=/opt/boost_1_58_0 ... I got some messages to tip me the options are invalid .

Answer

As far as boost is concerned, try BOOST_ROOT or run cmake --help-module FindBoost for a complete list. I don't see where MariaDB uses libevent nowadays.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.