aboutsummaryrefslogtreecommitdiff
path: root/dep/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'dep/mysql')
-rw-r--r--dep/mysql/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/dep/mysql/CMakeLists.txt b/dep/mysql/CMakeLists.txt
index a30b0f738f4..dd9b7c9f1b3 100644
--- a/dep/mysql/CMakeLists.txt
+++ b/dep/mysql/CMakeLists.txt
@@ -8,10 +8,17 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-find_package(MySQL REQUIRED COMPONENTS lib)
+set(MYSQL_MIN_VERSION_MySQL 8.0.34)
+set(MYSQL_MIN_VERSION_MariaDB 10.4)
+find_package(MySQL COMPONENTS lib)
add_library(mysql INTERFACE)
+target_compile_definitions(mysql
+ INTERFACE
+ TRINITY_MYSQL_FLAVOR="${MYSQL_FLAVOR}"
+ TRINITY_REQUIRED_MYSQL_VERSION="${MYSQL_MIN_VERSION_${MYSQL_FLAVOR}}")
+
target_link_libraries(mysql
INTERFACE
MySQL::MySQL)