-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
96 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,13 @@ ELSEIF (APPLE) | |
/opt/homebrew/include/mysql | ||
/opt/homebrew/opt/[email protected]/include | ||
/opt/homebrew/Cellar/[email protected]/*/include/mysql) | ||
ELSE (WIN32) | ||
FIND_PATH(MYSQL_INCLUDE_DIR mysql.h | ||
/opt/homebrew/Cellar/[email protected]/*/include/mysql | ||
/opt/homebrew/opt/[email protected]/include | ||
/opt/homebrew/include/mysql | ||
/usr/local/include/mysql | ||
/usr/include/mysql) | ||
ENDIF() | ||
|
||
SET(MYSQL_NAMES mysqlclient) | ||
|
@@ -45,6 +52,15 @@ ELSEIF (APPLE) | |
/opt/homebrew/opt/[email protected]/lib | ||
/opt/homebrew/Cellar/[email protected]/*/lib | ||
PATH_SUFFIXES mysql) | ||
ELSE (WIN32) | ||
FIND_LIBRARY(MYSQL_LIBRARY | ||
NAMES ${MYSQL_NAMES} | ||
PATHS /usr/lib | ||
/usr/local/lib | ||
/opt/homebrew/lib | ||
/opt/homebrew/opt/[email protected]/lib | ||
/opt/homebrew/Cellar/[email protected]/*/lib | ||
PATH_SUFFIXES mysql) | ||
ENDIF() | ||
|
||
IF (MYSQL_INCLUDE_DIR AND MYSQL_LIBRARY) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters