Skip to content

Commit

Permalink
[poco] Fix dependency libmariadb (#14763)
Browse files Browse the repository at this point in the history
* [poco] Fix dependency libmariadb

* [poco] Remove link in codes
  • Loading branch information
JackBoosY committed Nov 30, 2020
1 parent b743d46 commit d7c3b9e
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 221 deletions.
2 changes: 1 addition & 1 deletion ports/libmariadb/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: libmariadb
Version: 3.1.10
Port-Version: 3
Port-Version: 4
Homepage: https://github.com/MariaDB/mariadb-connector-c
Description: MariaDB Connector/C is used to connect C/C++ applications to MariaDB and MySQL databases
Default-Features: zlib, openssl
Expand Down
12 changes: 10 additions & 2 deletions ports/libmariadb/export-cmake-targets.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
index 083a863..d911fa7 100644
index 083a863..6c8d932 100644
--- a/libmariadb/CMakeLists.txt
+++ b/libmariadb/CMakeLists.txt
@@ -457,13 +457,25 @@ ENDIF()
@@ -405,6 +405,7 @@ ELSE()
TARGET_LINK_LIBRARIES(libmariadb LINK_PRIVATE mariadbclient)
SET_TARGET_PROPERTIES(libmariadb PROPERTIES LINKER_LANGUAGE C)
ENDIF()
+TARGET_INCLUDE_DIRECTORIES(libmariadb PUBLIC $<INSTALL_INTERFACE:include/mysql>)

TARGET_LINK_LIBRARIES(libmariadb LINK_PRIVATE ${SYSTEM_LIBS})

@@ -457,13 +458,25 @@ ENDIF()

INSTALL(TARGETS mariadbclient
COMPONENT Development
Expand Down
2 changes: 1 addition & 1 deletion ports/poco/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: poco
Version: 1.10.1
Port-Version: 2
Port-Version: 3
Build-Depends: expat, pcre, zlib
Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.
Homepage: https://github.com/pocoproject/poco
Expand Down
Loading

0 comments on commit d7c3b9e

Please sign in to comment.