-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3317: Data::MySQL MySQL headers and library search paths
- Loading branch information
1 parent
65fd5f8
commit 08ef4db
Showing
17 changed files
with
125 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# MySQL.make | ||
# | ||
# Makefile fragment for finding MySQL library | ||
# | ||
|
||
ifndef POCO_MYSQL_INCLUDE | ||
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?)) | ||
POCO_MYSQL_INCLUDE = /usr/local/include | ||
else | ||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client; echo $$?)) | ||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/include | ||
else | ||
ifeq (0, $(shell test -d /usr/local/opt/mysql; echo $$?)) | ||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql/include | ||
endif | ||
endif | ||
endif | ||
endif | ||
|
||
ifndef POCO_MYSQL_LIB | ||
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?)) | ||
POCO_MYSQL_LIB = /usr/local/lib | ||
else | ||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/lib; echo $$?)) | ||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/lib | ||
else | ||
ifeq (0, $(shell test -d /usr/local/opt/mysql/lib; echo $$?)) | ||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql/lib | ||
endif | ||
endif | ||
endif | ||
endif | ||
|
||
ifdef POCO_MYSQL_INCLUDE | ||
INCLUDE += -I$(POCO_MYSQL_INCLUDE) | ||
endif | ||
ifdef POCO_MYSQL_LIB | ||
SYSLIBS += -L$(POCO_MYSQL_LIB) | ||
endif |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
|
||
#include "Poco/Data/MySQL/Utility.h" | ||
#include <mysql.h> | ||
#include <mysql/mysql.h> | ||
|
||
|
||
namespace Poco { | ||
|
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
Oops, something went wrong.