From d4689532b1d25feef97583feb9313714c1ba8ccb Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 29 Dec 2019 20:39:05 +0300 Subject: [PATCH] Disable mysql client on Mac OS --- libs/libmysqlxx/cmake/find_mysqlclient.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/libmysqlxx/cmake/find_mysqlclient.cmake b/libs/libmysqlxx/cmake/find_mysqlclient.cmake index 2c27ab18df3..80e7806ef47 100644 --- a/libs/libmysqlxx/cmake/find_mysqlclient.cmake +++ b/libs/libmysqlxx/cmake/find_mysqlclient.cmake @@ -1,4 +1,9 @@ -option(ENABLE_MYSQL "Enable MySQL" ${ENABLE_LIBRARIES}) +if(OS_LINUX) + option(ENABLE_MYSQL "Enable MySQL" ${ENABLE_LIBRARIES}) +else () + option(ENABLE_MYSQL "Enable MySQL" FALSE) +endif () + if(ENABLE_MYSQL) option(USE_INTERNAL_MYSQL_LIBRARY "Set to FALSE to use system mysqlclient library instead of bundled" ${NOT_UNBUNDLED})