MySQL Connector/C++ 1.1 Developer Guide

4.6 Connector/C++ Source-Configuration Options

Connector/C++ recognizes the CMake options described in this section.

Table 4.1 Connector/C++ Source-Configuration Option Reference

Formats Description Default Introduced
BOOST_ROOT The Boost source directory
BUNDLE_DEPENDENCIES Whether to bundle external dependency libraries with the connector OFF 1.1.11
CMAKE_BUILD_TYPE Type of build to produce Debug
CMAKE_ENABLE_C++11 Whether to enable C++11 support OFF 1.1.6
CMAKE_INSTALL_PREFIX Installation base directory /usr/local
MYSQLCLIENT_NO_THREADS Whether to link against single-threaded MySQL client library OFF
MYSQLCLIENT_STATIC_BINDING Whether to link to the shared MySQL client library ON
MYSQLCLIENT_STATIC_LINKING Whether to statically link to the MySQL client library ON
MYSQLCPPCONN_GCOV_ENABLE Whether to enable gcov support OFF
MYSQLCPPCONN_TRACE_ENABLE Whether to enable tracing functionality OFF
MYSQL_CFLAGS C compiler flags
MYSQL_CONFIG_EXECUTABLE Path to the mysql_config program ${MYSQL_DIR}/bin/mysql_config
MYSQL_CXXFLAGS C++ compiler flags
MYSQL_CXX_LINKAGE Whether MySQL client library needs C++ linking ON
MYSQL_DIR MySQL Server or Connector/C installation directory
MYSQL_EXTRA_LIBRARIES Extra link libraries
MYSQL_INCLUDE_DIR The MySQL header file directory ${MYSQL_DIR}/include
MYSQL_LIB_DIR The MySQL client library directory ${MYSQL_DIR}/lib
MYSQL_LINK_FLAGS Extra link flags
USE_SERVER_CXXFLAGS Use MySQL Server CXXFLAGS value rather than system default OFF 1.1.7