Skip to content

Commit

Permalink
fix new MacOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hggq committed Apr 29, 2024
1 parent 1fd645b commit 8d9d4ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,13 @@ else()
find_path(MYSQL_ROOT_DIR mysql)
endif()

MESSAGE( STATUS "MYSQL_ROOT_DIR = ${MYSQL_ROOT_DIR} ")
find_package_handle_standard_args(mysql REQUIRED_VARS MYSQL_ROOT_DIR)

FIND_PATH(MYSQL_INCLUDE_DIR NAMES mysql.h
PATHS /usr/local/include/mysql /usr/include/mysql /usr/local/mysql/include /opt/homebrew/opt/mysql-client/include
PATHS /usr/local/include/mysql /usr/include/mysql /usr/local/opt/mysql-client/include /opt/homebrew/opt/mysql-client/include
)


MESSAGE( STATUS "MYSQL_ROOT_DIR = ${MYSQL_ROOT_DIR} ")
find_package_handle_standard_args(mysql REQUIRED_VARS MYSQL_ROOT_DIR)


if(NOT MYSQL_INCLUDE_DIR)
Expand Down

0 comments on commit 8d9d4ab

Please sign in to comment.