Tidy up the formatting of the mysql tests

Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 6b36c71829)
r14.0.x
aneejit1 4 years ago committed by Michele Calgaro
parent d5fe80869f
commit f337cd3d7e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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 )

Loading…
Cancel
Save