Skip to content

Commit

Permalink
[mariadb-connector-cpp] update to 1.1.5 (microsoft#41092)
Browse files Browse the repository at this point in the history
  • Loading branch information
c8ef authored Sep 20, 2024
1 parent 64123e5 commit 4efb299
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
14 changes: 7 additions & 7 deletions ports/mariadb-connector-cpp/libmariadb.diff
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 43bc4a2..5a10e1e 100644
index db28fd9..1692f72 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -545,7 +545,11 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/src/maconncpp.def.in
${CMAKE_SOURCE_DIR}/src/maconncpp.def)
@@ -545,7 +545,11 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/maconncpp.def.in
${CMAKE_CURRENT_SOURCE_DIR}/src/maconncpp.def)

# Dynamic linking is default on non-Windows
-IF(MARIADB_LINK_DYNAMIC)
+IF(1)
+ find_package(unofficial-libmariadb CONFIG REQUIRED)
+ set(MARIADB_CLIENT_TARGET_NAME unofficial::libmariadb)
+ add_library(mariadbclient ALIAS unofficial::libmariadb)
+ FIND_PACKAGE(unofficial-libmariadb CONFIG REQUIRED)
+ SET(MARIADB_CLIENT_TARGET_NAME unofficial::libmariadb)
+ ADD_LIBRARY(mariadbclient ALIAS unofficial::libmariadb)
+ELSEIF(MARIADB_LINK_DYNAMIC)
IF(USE_SYSTEM_INSTALLED_LIB)
IF(MINGW)
Expand All @@ -19,7 +19,7 @@ index 43bc4a2..5a10e1e 100644


ADD_LIBRARY(${LIBRARY_NAME}_obj OBJECT ${MACPP_SOURCES})
+target_link_libraries(${LIBRARY_NAME}_obj PRIVATE unofficial::libmariadb)
+TARGET_LINK_LIBRARIES(${LIBRARY_NAME}_obj PRIVATE unofficial::libmariadb)
IF(UNIX)
SET_TARGET_PROPERTIES(${LIBRARY_NAME}_obj PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}")
ENDIF()
2 changes: 1 addition & 1 deletion ports/mariadb-connector-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vcpkg_from_github(
REPO mariadb-corporation/mariadb-connector-cpp
REF ${VERSION}
HEAD_REF master
SHA512 da1a2d28c1c56a14674c500ebc8ab0d0b7d9053335f147c2353832f05c2527f4bddd1fe4fff55f625b9e6085111e3b615f5a1a6484dd1fd61a7e6a8cabfd8c57
SHA512 90ce780e19babda02608134c99e8c0e7601a41ee5531097735beb54ec94c2dd38ecf4f457e9cac04831d7e886fe7c7b7a6d9fe799bf71d52ba168158ec36dc67
PATCHES
fix-carray.diff
libmariadb.diff
Expand Down
2 changes: 1 addition & 1 deletion ports/mariadb-connector-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mariadb-connector-cpp",
"version": "1.1.4",
"version": "1.1.5",
"description": "Connector/c++ for MariaDB.",
"homepage": "https://mariadb.com/docs/appdev/connector-cpp/",
"license": "LGPL-2.1-or-later",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5725,7 +5725,7 @@
"port-version": 0
},
"mariadb-connector-cpp": {
"baseline": "1.1.4",
"baseline": "1.1.5",
"port-version": 0
},
"marisa-trie": {
Expand Down
5 changes: 5 additions & 0 deletions versions/m-/mariadb-connector-cpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1983f1fab25432ab561ae4bee2e81243a1af9993",
"version": "1.1.5",
"port-version": 0
},
{
"git-tree": "8cc12b00f195b480d285ebd6e549539db76ed36a",
"version": "1.1.4",
Expand Down

0 comments on commit 4efb299

Please sign in to comment.