mysql-connector-c++: depend on mysql-client instead of mysql
This commit is contained in:
parent
cbc7f08c0b
commit
03290f228c
1 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@ class MysqlConnectorCxx < Formula
|
|||
homepage "https://dev.mysql.com/downloads/connector/cpp/"
|
||||
url "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-1.1.9.tar.gz"
|
||||
sha256 "3e31847a69a4e5c113b7c483731317ec4533858e3195d3a85026a0e2f509d2e4"
|
||||
revision 1
|
||||
revision 2
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -15,7 +15,7 @@ class MysqlConnectorCxx < Formula
|
|||
depends_on "cmake" => :build
|
||||
depends_on "boost" => :build
|
||||
depends_on "openssl"
|
||||
depends_on "mysql"
|
||||
depends_on "mysql-client"
|
||||
|
||||
def install
|
||||
system "cmake", ".", *std_cmake_args
|
||||
|
@ -34,7 +34,8 @@ class MysqlConnectorCxx < Formula
|
|||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cxx, "test.cpp", `mysql_config --include`.chomp, "-L#{lib}", "-lmysqlcppconn", "-o", "test"
|
||||
system ENV.cxx, "test.cpp", "-I#{Formula["mysql-client"].opt_include}",
|
||||
"-L#{lib}", "-lmysqlcppconn", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue