Tidy up the formatting of the mysql tests

Signed-off-by: aneejit1 <aneejit1@gmail.com>
pull/21/head
aneejit1 4 years ago committed by TDE Gitea
parent b751988425
commit 6b36c71829

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

Loading…
Cancel
Save