From b386971229f5ad389be9e22cbb96c39d79ac7beb Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 30 Aug 2025 19:25:47 +0200 Subject: Dep/MySQL: Move required version checks to CMake, raise required version to 8.0.34 and remove strict compiled<->runtime version match requirement from non-Windows platforms --- cmake/macros/FindMySQLVersion.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cmake/macros/FindMySQLVersion.c (limited to 'cmake/macros/FindMySQLVersion.c') diff --git a/cmake/macros/FindMySQLVersion.c b/cmake/macros/FindMySQLVersion.c new file mode 100644 index 00000000000..80a9f2ec043 --- /dev/null +++ b/cmake/macros/FindMySQLVersion.c @@ -0,0 +1,18 @@ +#include +#include + +int main() +{ + printf("{ " + "\"version\": \"%d.%d.%d\", " + "\"flavor\": \"%s\"" + " }", + MYSQL_VERSION_ID / 10000, (MYSQL_VERSION_ID / 100) % 100, MYSQL_VERSION_ID % 100, +#ifdef MARIADB_VERSION_ID + "MariaDB" +#else + "MySQL" +#endif + ); + return 0; +} -- cgit v1.2.3