Skip to content

Commit 046ba79

Browse files
committed
Merge remote-tracking branch 'origin/release/9.2.0' into trunk
2 parents 5b1aa87 + eb8aa60 commit 046ba79

File tree

3 files changed

+51
-6
lines changed

3 files changed

+51
-6
lines changed

packaging/compat.patch

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,21 @@ index 8b960402..37fac11d 100644
3232

3333
#
3434
# Set higher warning level for the main connector code.
35+
diff --git a/doc/doxygen.cfg b/doc/doxygen.cfg
36+
index 7bf32bcf..870d6ada 100644
37+
--- a/doc/doxygen.cfg
38+
+++ b/doc/doxygen.cfg
39+
@@ -66,7 +66,7 @@ PROJECT_NAME = "MySQL Connector/C++"
40+
# could be handy for archiving the generated documentation or if some version
41+
# control system is used.
42+
43+
-PROJECT_NUMBER = 8.0.23
44+
+PROJECT_NUMBER = 9.2.0
45+
46+
# Using the PROJECT_BRIEF tag one can provide an optional one line description
47+
# for a project that appears at the top of each page and should give viewer a
3548
diff --git a/version.cmake b/version.cmake
36-
index 53f8f540..4d32f5ee 100644
49+
index 53f8f540..54bc21b2 100644
3750
--- a/version.cmake
3851
+++ b/version.cmake
3952
@@ -34,8 +34,8 @@ set(COPYRIGHT_YEAR "2024" CACHE INTERNAL "version info")
@@ -43,7 +56,7 @@ index 53f8f540..4d32f5ee 100644
4356
-set(CONCPP_VERSION_MAJOR 8 CACHE INTERNAL "version info")
4457
-set(CONCPP_VERSION_MINOR 4 CACHE INTERNAL "version info")
4558
+set(CONCPP_VERSION_MAJOR 9 CACHE INTERNAL "version info")
46-
+set(CONCPP_VERSION_MINOR 1 CACHE INTERNAL "version info")
59+
+set(CONCPP_VERSION_MINOR 2 CACHE INTERNAL "version info")
4760
set(CONCPP_VERSION_MICRO 0 CACHE INTERNAL "version info")
4861
# Level is "-alpha", "-beta", empty if GA
4962
set(CONCPP_VERSION_LEVEL "" CACHE INTERNAL "version info")

testapp/CMakeLists.txt

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,42 @@ PROJECT(MySQL_CONCPP_TEST)
6060
# ========================================================================
6161
# Dependencies
6262

63+
function(find_openssl where)
64+
65+
if(where STREQUAL "bundled")
66+
if(mysql-concpp_DIR)
67+
set(WITH_SSL "${mysql-concpp_DIR}")
68+
else()
69+
message(WARNING
70+
"A request to use bundled OpenSSL libraries was made but"
71+
" Connector/C++ install location was not explicitly given"
72+
" via mysql-concpp_DIR or WITH_CONCPP setting."
73+
)
74+
return()
75+
endif()
76+
endif()
6377

64-
if(WITH_SSL)
78+
find_library(openssl
79+
NAMES ssl
80+
PATHS "${WITH_SSL}"
81+
PATH_SUFFIXES "" "lib" "lib64"
82+
NO_DEFAULT_PATH
83+
NO_CACHE
84+
)
85+
86+
if(NOT openssl)
87+
message(WARNING
88+
"OpenSSL libraries not found at specified location: ${WITH_SSL}"
89+
)
90+
return()
91+
endif()
6592

93+
get_filename_component(WITH_SSL "${openssl}" DIRECTORY CACHE)
6694
message(STATUS "Using custom OpenSSL libraries at: ${WITH_SSL}")
6795

6896
add_library(openssl INTERFACE)
6997
# TODO: Is this path correct also on non-Win platforms?
70-
target_link_directories(openssl INTERFACE "${WITH_SSL}/lib")
98+
target_link_directories(openssl INTERFACE "${WITH_SSL}")
7199

72100
if(WIN32)
73101
set(ssl_libs libssl libcrypto)
@@ -78,12 +106,16 @@ if(WITH_SSL)
78106
target_link_libraries(openssl INTERFACE ${ssl_libs})
79107
add_library(mysql::openssl ALIAS openssl)
80108

81-
endif()
109+
endfunction()
110+
82111

83112
if(NOT DEFINED mysql-concpp_DIR AND DEFINED WITH_CONCPP)
84113
set(mysql-concpp_DIR "${WITH_CONCPP}")
85114
endif()
86115

116+
if(WITH_SSL)
117+
find_openssl("${WITH_SSL}")
118+
endif()
87119

88120
find_package(mysql-concpp REQUIRED ${REQUIRED_COMPONENTS})
89121

version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Note: To be used in copyright notes of generated files
3030

31-
set(COPYRIGHT_YEAR "2024" CACHE INTERNAL "version info")
31+
set(COPYRIGHT_YEAR "2025" CACHE INTERNAL "version info")
3232

3333
#
3434
# Connector/C++ version

0 commit comments

Comments
 (0)