Skip to content

Commit

Permalink
MODIFIED: Added 1 more possible path for finding the Mysql lib and he…
Browse files Browse the repository at this point in the history
…aders to the CMake mysql module.

Patch by ZymoticB. http://arcemu.org/forums/index.php?showtopic=25205
Commited by dfighter1985.
  • Loading branch information
arcemupatches committed Aug 5, 2011
1 parent c1048a4 commit cf40b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake_modules/FindMySQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
/usr/local/include/mysql
/usr/include/mysql
/usr/local/mysql/include
/opt/local/include/mysql5/mysql
)

SET(MYSQL_NAMES mysqlclient mysqlclient_r)
FIND_LIBRARY(MYSQL_LIBRARY
NAMES ${MYSQL_NAMES}
PATHS /usr/lib /usr/lib/mysql /usr/local/lib /usr/local/mysql/lib /usr/local/lib/mysql
PATHS /usr/lib /usr/lib/mysql /usr/local/lib /usr/local/mysql/lib /usr/local/lib/mysql /opt/local/lib/mysql5/mysql
)

IF (MYSQL_INCLUDE_DIR AND MYSQL_LIBRARY)
Expand Down

0 comments on commit cf40b52

Please sign in to comment.