Skip to content

Commit

Permalink
find mysql on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacyking committed Aug 29, 2023
1 parent d4b4502 commit e81d301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/mariadb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ELSEIF (UNIX)
ELSEIF (MACROS)
FIND_PATH(MARIADB_INCLUDE_DIR mysql.h
/usr/local/opt/mariadb*/include
/usr/local/include/mariadb
/usr/include/mariadb
)
ENDIF()
Expand All @@ -44,7 +45,7 @@ ELSEIF (UNIX)
ELSEIF (MACROS)
FIND_LIBRARY(MARIADB_LIBRARY
NAMES ${MARIADB_NAMES}
PATHS /usr/lib /usr/local/opt/mariadb*/lib
PATHS /usr/lib /usr/local/lib /usr/local/opt/mariadb*/lib
PATH_SUFFIXES mariadb
)
ENDIF()
Expand Down
3 changes: 2 additions & 1 deletion cmake/mysql.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ELSEIF (UNIX)
ELSEIF (MACROS)
FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
/usr/local/opt/mysql*/include
/usr/local/include/mysql
/usr/include/mysql
)
ENDIF()
Expand All @@ -44,7 +45,7 @@ ELSEIF (UNIX)
ELSEIF (MACROS)
FIND_LIBRARY(MYSQL_LIBRARY
NAMES ${MYSQL_NAMES}
PATHS /usr/lib /usr/local/opt/mysql*/lib
PATHS /usr/lib /usr/local/lib /usr/local/opt/mysql*/lib
PATH_SUFFIXES mysql
)
ENDIF()
Expand Down

0 comments on commit e81d301

Please sign in to comment.