diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-08-30 19:25:47 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-08-30 19:25:47 +0200 |
commit | b386971229f5ad389be9e22cbb96c39d79ac7beb (patch) | |
tree | 2c42d82777bef538e8f6fe21c19be5bfc13d7ef6 /cmake/macros/FindMySQLVersion.c | |
parent | 4124068c47b9f0f8d45ed41dacb4bd8a1a2c00d0 (diff) |
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
Diffstat (limited to 'cmake/macros/FindMySQLVersion.c')
-rw-r--r-- | cmake/macros/FindMySQLVersion.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 <mysql.h> +#include <stdio.h> + +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; +} |