Skip to content

Commit

Permalink
fix FindMySQL.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Oct 4, 2023
1 parent 24e48e0 commit d79c8e4
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions cmake/FindMySQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pkg_check_modules(PC_MARIADB QUIET mariadb)
SET(BINDIR32_ENV_NAME "ProgramFiles(x86)")
SET(BINDIR32 $ENV{${BINDIR32_ENV_NAME}})

find_path(MYSQL_INCLUDE_DIR mysql.h
find_path(MYSQL_INCLUDE_DIR mysql/mysql.h
HINTS
${MYSQL_ROOT_DIR}/include
${MYSQL_ROOT_INCLUDE_DIRS}
Expand All @@ -35,11 +35,8 @@ find_path(MYSQL_INCLUDE_DIR mysql.h
${PC_MARIADB_INCLUDE_DIRS}
/usr/include
/usr/local/include
/usr/mysql/include
/usr/local/mysql/include
/usr/local/opt/mysql-client/include
/opt/local/include
/opt/mysql/include
/opt/mysql/mysql/include
/usr/local/mysql/include
$ENV{MYSQL_INCLUDE_DIR}
$ENV{MYSQL_DIR}/include
$ENV{ProgramFiles}/MySQL/*/include
Expand Down Expand Up @@ -71,13 +68,6 @@ if (MSVC)
PATHS
${PC_MYSQL_LIBRARY_DIRS}
${PC_MARIADB_LIBRARY_DIRS}
/usr/local/lib
/usr/local/lib$(LIB64SUFFIX)/mysql
/usr/lib$(LIB64SUFFIX)/mysql
/usr/mysql/lib$(LIB64SUFFIX)
/usr/mysql/lib$(LIB64SUFFIX)/mysql
/usr/local/mysql/lib$(LIB64SUFFIX)
/usr/local/opt/mysql-client/lib
$ENV{MYSQL_DIR}/lib
$ENV{MYSQL_DIR}/libmysql
$ENV{MYSQL_DIR}/client
Expand Down

0 comments on commit d79c8e4

Please sign in to comment.