That command configures the distribution to use the installed OpenSSL library. Alternatively, to explicitly specify the path name to the OpenSSL installation, use the following syntax. This can be useful if you have multiple versions of OpenSSL installed, to prevent CMake  from choosing the wrong one: 

cmake . -DWITH_SSL= path_name 

## 3. Compile and install the distribution. 

To check whether a mysqld  server supports encrypted connections, examine the value of the have_ssl system variable: 

mysql> SHOW VARIABLES LIKE ’have_ssl’; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | have_ssl | YES | +---------------+-------+ 

If the value is YES , the server supports encrypted connections. If the value is DISABLED , the server is capable of supporting encrypted connections but was not started with the appropriate --ssl- xxx  options to enable encrypted connections to be used; see Section 6.3.1, “Configuring MySQL to Use Encrypted Connections” . 

## 2.9.7 MySQL Source-Configuration Options 

The CMake  program provides a great deal of control over how you configure a MySQL source distribution. Typically, you do this using options on the CMake  command line. For information about options supported by CMake , run either of these commands in the top-level source directory: 

cmake . -LH 

ccmake . 

You can also affect CMake  using certain environment variables. See Section 4.9, “Environment Variables” . 

For boolean options, the value may be specified as 1 or ON  to enable the option, or as 0 or OFF  to disable the option. 

Many options configure compile-time defaults that can be overridden at server startup. For example, the CMAKE_INSTALL_PREFIX , MYSQL_TCP_PORT , and MYSQL_UNIX_ADDR  options that configure the default installation base directory location, TCP/IP port number, and Unix socket file can be changed at server startup with the --basedir , --port , and --socket  options for mysqld . Where applicable, configuration option descriptions indicate the corresponding mysqld  startup option. 

The following sections provide more information about CMake  options. 

•CMake Option Reference 

•General Options 

•Installation Layout Options 

•Storage Engine Options 

•Feature Options 

•Compiler Flags 

•CMake Options for Compiling NDB Cluster 

