-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mysql-connector-cpp] Fix static lib name for MSVC (#42612)
- Loading branch information
Showing
6 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
diff --git a/cdk/cmake/DepFindProtobuf.cmake b/cdk/cmake/DepFindProtobuf.cmake | ||
index 1fc785e..d9eaecc 100644 | ||
index 1fc785e..2ba7e99 100644 | ||
--- a/cdk/cmake/DepFindProtobuf.cmake | ||
+++ b/cdk/cmake/DepFindProtobuf.cmake | ||
@@ -45,8 +45,6 @@ | ||
@@ -44,9 +44,9 @@ | ||
# | ||
# | ||
|
||
if(TARGET ext::protobuf) | ||
- return() | ||
-if(TARGET ext::protobuf) | ||
+if(COMMAND mysqlx_protobuf_generate_cpp) | ||
return() | ||
-endif() | ||
+elseif(0) | ||
|
||
message(STATUS "Setting up Protobuf.") | ||
|
||
@@ -65,6 +63,10 @@ add_ext_targets(protobuf | ||
EXECUTABLE protoc pb_protoc | ||
@@ -66,6 +66,7 @@ add_ext_targets(protobuf | ||
) | ||
|
||
+endif() | ||
+if(COMMAND mysqlx_protobuf_generate_cpp) | ||
+ return() | ||
+endif() | ||
|
||
+endif() | ||
# Standard PROTOBUF_GENERATE_CPP modified to our usage | ||
function(mysqlx_protobuf_generate_cpp SRCS HDRS) | ||
IF(NOT ARGN) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/install_layout.cmake b/install_layout.cmake | ||
index 4a8a511..ee091da 100644 | ||
--- a/install_layout.cmake | ||
+++ b/install_layout.cmake | ||
@@ -219,7 +219,7 @@ set(LIB_NAME_BASE "mysqlcppconnx") | ||
set(LIB_NAME_STATIC "${LIB_NAME_BASE}-static") | ||
|
||
if(WIN32 AND STATIC_MSVCRT) | ||
- set(LIB_NAME_STATIC "${LIB_NAME}-mt") | ||
+ set(LIB_NAME_STATIC "${LIB_NAME_STATIC}-mt") | ||
endif() | ||
|
||
if(BUILD_STATIC) | ||
diff --git a/jdbc/install_layout.cmake b/jdbc/install_layout.cmake | ||
index e9e15a5..a4f7dc0 100644 | ||
--- a/jdbc/install_layout.cmake | ||
+++ b/jdbc/install_layout.cmake | ||
@@ -91,7 +91,7 @@ set(LIB_NAME_BASE "mysqlcppconn") | ||
set(LIB_NAME_STATIC "${LIB_NAME_BASE}-static") | ||
|
||
if(WIN32 AND STATIC_MSVCRT) | ||
- set(LIB_NAME_STATIC "${LIB_NAME}-mt") | ||
+ set(LIB_NAME_STATIC "${LIB_NAME_STATIC}-mt") | ||
endif() | ||
|
||
if(BUILD_STATIC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters