File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ function(main)
297
297
298
298
if (MYSQL_LIB_STATIC )
299
299
target_link_libraries (mysql-client-if INTERFACE MySQL::client-static )
300
+ target_link_libraries (mysql-client-if INTERFACE SSL::ssl SSL::crypto )
300
301
else ()
301
302
target_link_libraries (mysql-client-if INTERFACE MySQL::client-shared )
302
303
endif ()
@@ -513,7 +514,7 @@ function(use_mysql_config)
513
514
514
515
_mysql_conf (config_libs_paths --libs )
515
516
string (REGEX MATCHALL " -l[^ ]+" config_libs ${config_libs_paths} )
516
- message ("-- libs: ${config_libs} " )
517
+ # message("-- libs: ${config_libs}")
517
518
518
519
519
520
foreach (lib ${config_libs} )
@@ -523,9 +524,11 @@ function(use_mysql_config)
523
524
524
525
# Libraries that are known to be internal compiler ones are not set as
525
526
# explicit dependencies.
527
+ # Openssl dependency is treated differently, respecting users WITH_SSL
528
+ # option.
526
529
527
530
if (NOT lib MATCHES
528
- "(mysqlclient|libmysql|^stdc|^gcc|^CrunG3|^c$|^statomic)"
531
+ "(mysqlclient|libmysql|^stdc|^gcc|^CrunG3|^c$|^statomic|^ssl|^crypto )"
529
532
)
530
533
531
534
list (APPEND MYSQL_EXTERNAL_DEPENDENCIES ${lib} )
You can’t perform that action at this time.
0 commit comments