From 2ad757eba87e474564c509ad9544805e394a94a6 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 29 Apr 2024 13:10:23 +0800 Subject: [PATCH] fix new MacOS CI --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c666b8..231c26f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -344,6 +344,11 @@ FIND_PATH(MYSQL_INCLUDE_DIR mysql.h /usr/local/mysql/include /opt/homebrew/opt/mysql/include ) + +if(NOT MYSQL_INCLUDE_DIR) + message(STATUS "Could not find \"mysql.h\" from searching ") +endif() + SET(MYSQL_NAMES mysqlclient) FIND_LIBRARY(MYSQL_LIBRARY NAMES ${MYSQL_NAMES}