summarylogtreecommitdiffstats
path: root/0006-Support-finding-MariaDB.patch
blob: d77c2f044b42be4779b80c1561a1e17cd31b6359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From baf1e987e55c90a32e6e32438f770f7aab4c4a3c Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 8 Nov 2020 00:33:12 +0100
Subject: [PATCH 6/7] Support finding MariaDB

Change-Id: I3f95a7c3aabc734e1c6c5ce00957ab9814200232
---
 cmake/FindMySQL.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/FindMySQL.cmake b/cmake/FindMySQL.cmake
index 7575386338..df1d848cf6 100644
--- a/cmake/FindMySQL.cmake
+++ b/cmake/FindMySQL.cmake
@@ -24,10 +24,10 @@ pkg_check_modules(PC_MySQL QUIET mysqlclient)
 find_path(MySQL_INCLUDE_DIRS
           NAMES mysql.h
           HINTS ${PC_MySQL_INCLUDEDIR}
-          PATH_SUFFIXES mysql)
+          PATH_SUFFIXES mariadb mysql)
 
 find_library(MySQL_LIBRARIES
-             NAMES mysqlclient
+             NAMES mariadb mariadbclient mysqlclient
              HINTS ${PC_MySQL_LIBDIR}
 )
 
-- 
2.29.2