mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
fix MySQL.make
This commit is contained in:
parent
64ccf120f8
commit
1a4c6e10a6
@ -22,16 +22,16 @@ ifneq (, $(POCO_MYSQL_CONFIG))
|
||||
else
|
||||
ifndef POCO_MYSQL_INCLUDE
|
||||
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = -I/usr/local/include
|
||||
POCO_MYSQL_INCLUDE = /usr/local/include
|
||||
else
|
||||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/include/mysql; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = -I/usr/local/opt/mysql-client/include/mysql
|
||||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/include/mysql
|
||||
else
|
||||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/include; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = -I/usr/local/opt/mysql-client/include
|
||||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/include
|
||||
else
|
||||
ifeq (0, $(shell test -d /opt/homebrew/opt/mysql-client/include; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = -I/opt/homebrew/opt/mysql-client/include
|
||||
POCO_MYSQL_INCLUDE = /opt/homebrew/opt/mysql-client/include
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@ -40,13 +40,13 @@ else
|
||||
|
||||
ifndef POCO_MYSQL_LIB
|
||||
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
|
||||
POCO_MYSQL_LIB = -L/usr/local/lib
|
||||
POCO_MYSQL_LIB = /usr/local/lib
|
||||
else
|
||||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/lib; echo $$?))
|
||||
POCO_MYSQL_LIB = -L/usr/local/opt/mysql-client/lib
|
||||
POCO_MYSQL_LIB = /usr/local/opt/mysql-client/lib
|
||||
else
|
||||
ifeq (0, $(shell test -d /opt/homebrew/opt/mysql-client/lib; echo $$?))
|
||||
POCO_MYSQL_LIB = -L/opt/homebrew/opt/mysql-client/lib
|
||||
POCO_MYSQL_LIB = /opt/homebrew/opt/mysql-client/lib
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@ -54,8 +54,8 @@ else
|
||||
endif
|
||||
|
||||
ifdef POCO_MYSQL_INCLUDE
|
||||
INCLUDE += $(POCO_MYSQL_INCLUDE)
|
||||
INCLUDE += -I$(POCO_MYSQL_INCLUDE)
|
||||
endif
|
||||
ifdef POCO_MYSQL_LIB
|
||||
SYSLIBS += $(POCO_MYSQL_LIB)
|
||||
SYSLIBS += -L$(POCO_MYSQL_LIB)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user