Skip to content

Commit

Permalink
[mysql-connector-cpp] Add correct target namespace (microsoft#26686)
Browse files Browse the repository at this point in the history
* add correct target namespace

* update version

* correct namespace

* overwrite version

* format patch

* update version
  • Loading branch information
FrankXie05 authored Sep 6, 2022
1 parent 31c43c2 commit bc19f25
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
14 changes: 9 additions & 5 deletions ports/mysql-connector-cpp/export-targets.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e734714..6f00595 100644
index e734714..6d665dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -397,7 +397,7 @@ add_subdirectory(devapi)
Expand All @@ -11,10 +11,11 @@ index e734714..6f00595 100644


#
@@ -473,31 +473,23 @@ set_target_properties(connector PROPERTIES
@@ -472,32 +472,23 @@ set_target_properties(connector PROPERTIES
SOVERSION "${ABI_VERSION_MAJOR}"
)

-
-install(TARGETS connector
- CONFIGURATIONS Release RelWithDebInfo
- ARCHIVE DESTINATION "${INSTALL_LIB_DIR_STATIC}" COMPONENT XDevAPIDev
Expand Down Expand Up @@ -49,7 +50,7 @@ index e734714..6f00595 100644
COMPONENT Debuginfo
)

@@ -604,3 +596,12 @@ endif()
@@ -604,3 +595,15 @@ endif()


show_config_options()
Expand All @@ -61,5 +62,8 @@ index e734714..6f00595 100644
+ INSTALL_DESTINATION "share/unofficial-mysql-connector-cpp"
+)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-mysql-connector-cpp-config.cmake" DESTINATION "share/unofficial-mysql-connector-cpp")
+install(EXPORT unofficial-mysql-connector-cpp-targets DESTINATION share/unofficial-mysql-connector-cpp)
+install(EXPORT unofficial-mysql-connector-cpp-targets
+ NAMESPACE unofficial::mysql-connector-cpp::
+ DESTINATION share/unofficial-mysql-connector-cpp
+)
\ No newline at end of file
1 change: 1 addition & 0 deletions ports/mysql-connector-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "mysql-connector-cpp",
"version": "8.0.30",
"port-version": 1,
"description": "This is a release of MySQL Connector/C++, the C++ interface for communicating with MySQL servers.",
"homepage": "https://github.com/mysql/mysql-connector-cpp",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4882,7 +4882,7 @@
},
"mysql-connector-cpp": {
"baseline": "8.0.30",
"port-version": 0
"port-version": 1
},
"nameof": {
"baseline": "0.10.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/m-/mysql-connector-cpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0cb6021de557d4669a9483690da1500b2b83ba26",
"version": "8.0.30",
"port-version": 1
},
{
"git-tree": "f9da49dfd9685485198c029c16da9f37b2336e93",
"version": "8.0.30",
Expand Down

0 comments on commit bc19f25

Please sign in to comment.