|
|
|
@ -269,6 +269,7 @@ if( WITH_MYSQL )
|
|
|
|
|
|
|
|
|
|
message( STATUS "Check for MariaDB or MySQL" )
|
|
|
|
|
find_program( MYSQL_CONFIG NAMES mariadb_config mysql_config )
|
|
|
|
|
|
|
|
|
|
if( NOT MYSQL_CONFIG )
|
|
|
|
|
tde_message_fatal( "MySql support is requested but neither MySql or Mariadb have been found on your system" )
|
|
|
|
|
else()
|
|
|
|
@ -307,7 +308,6 @@ tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${MYSQL_INCLUDE_DIRS} )
|
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
|
#include <mysql.h>
|
|
|
|
|
typedef struct st_mysql MYSQL;
|
|
|
|
|
|
|
|
|
|
int main(int, char**)
|
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
@ -317,7 +317,6 @@ HAVE_STRUCT_ST_MYSQL )
|
|
|
|
|
if( HAVE_STRUCT_ST_MYSQL )
|
|
|
|
|
set( MYSQL_STRUCT "st_mysql" )
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
|
|
check_cxx_source_compiles("
|
|
|
|
|
#include <mysql.h>
|
|
|
|
|
typedef struct MYSQL MYSQL;
|
|
|
|
@ -338,6 +337,7 @@ endif()
|
|
|
|
|
tde_restore( CMAKE_REQUIRED_INCLUDES )
|
|
|
|
|
|
|
|
|
|
endif( NOT MYSQL_CONFIG )
|
|
|
|
|
|
|
|
|
|
endif( WITH_MYSQL )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|