]> granicus.if.org Git - icinga2/commitdiff
cmake: Update MySQL autodetection to support MariaDB 7166/head
authorMarkus Frosch <markus.frosch@icinga.com>
Tue, 7 May 2019 20:18:50 +0000 (22:18 +0200)
committerMarkus Frosch <markus.frosch@icinga.com>
Tue, 7 May 2019 20:18:50 +0000 (22:18 +0200)
third-party/cmake/FindMySQL.cmake

index 201a98259202ba030c2be0145d08ccdc8486a16b..d3a6e7f2a19459319eb15dbb321cba04ddfee699 100644 (file)
@@ -36,15 +36,21 @@ FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
   $ENV{MYSQL_DIR}/include
   /usr/include/mysql
   /usr/local/include/mysql
+  /usr/include/mariadb
+  /usr/local/include/mariadb
   /opt/mysql/mysql/include
   /opt/mysql/mysql/include/mysql
   /opt/mysql/include
+  /opt/mariadb/include/mysql
   /opt/local/include/mysql5
   /usr/local/mysql/include
   /usr/local/mysql/include/mysql
   ${_macports_include_dirs}
   $ENV{ProgramFiles}/MySQL/*/include
-  $ENV{SystemDrive}/MySQL/*/include)
+  $ENV{SystemDrive}/MySQL/*/include
+  $ENV{ProgramFiles}/MariaDB*/include/mysql
+  $ENV{SystemDrive}/MariaDB*/include/mysql
+)
 
 UNSET(_macports_include_dirs)