File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -256,15 +256,20 @@ install(
256
256
# Install external dependencies of MySQL client library, such as OpenSSL,
257
257
# if bundled with client library installation.
258
258
#
259
- # TODO
259
+ # Note: if main connector uses OpenSSL, then we will use the same libraries
260
+ # to satisfy client library dependency. But if main connector does not use
261
+ # OpenSSL, we copy required dependencies from MySQL installation.
260
262
#
261
263
262
- message ( "Installing external dependencies from: ${MYSQL_DIR} " )
264
+ if ( BUNDLE_DEPENDENCIES AND WITH_SSL STREQUAL "bundled " )
263
265
264
- install (DIRECTORY "${MYSQL_DIR} /bin/" DESTINATION lib64
265
- FILES_MATCHING PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX} "
266
- )
266
+ message ("Bundling OpenSSL libraries from: ${MYSQL_DIR} " )
267
+
268
+ install (DIRECTORY "${MYSQL_DIR} /bin/" DESTINATION lib64
269
+ FILES_MATCHING PATTERN "*${CMAKE_SHARED_LIBRARY_SUFFIX} "
270
+ )
267
271
272
+ endif ()
268
273
269
274
#############################################################################
270
275
#
You can’t perform that action at this time.
0 commit comments