link libmariadb instead of libmysql if headers indicate MariaDB

This commit is contained in:
Günter Obiltschnig
2021-06-23 13:01:11 +02:00
parent 9017c36884
commit 4508514666
2 changed files with 11 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
#include "Poco/Foundation.h"
#include <mysql/mysql.h>
//
@@ -54,7 +55,11 @@
#if !defined(MySQL_EXPORTS)
#pragma comment(lib, "PocoDataMySQL" POCO_LIB_SUFFIX)
#endif
#pragma comment(lib, "libmysql")
#if defined(LIBMARIADB)
#pragma comment(lib, "libmariadb")
#else
#pragma comment(lib, "libmysql")
#endif
#endif

View File

@@ -12,6 +12,11 @@
//
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "Poco/Data/MySQL/MySQLException.h"
#include <mysql/mysql.h>
#include <stdio.h>