Skip to content

Commit 315b17c

Browse files
committed
Fix cmake package configuration script to correctly locate bundled OpenSSL libraries
1 parent dce8d1f commit 315b17c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mysql-concpp-config.cmake.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,18 +594,22 @@ function(find_deps)
594594

595595
# Try to find the bundled OpenSSL
596596

597+
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".dll" ".dylib")
598+
597599
unset(ssl_lib CACHE)
598600
find_library(ssl_lib
599601
NAMES ssl libssl
600-
PATHS ${LIB_PATH}/${vs_suffix}
602+
PATHS ${LIB_PATH}
603+
PATH_SUFFIXES private ${vs_suffix}
601604
NO_DEFAULT_PATH
602605
NO_CACHE
603606
)
604607

605608
unset(ssl_crypto CACHE)
606609
find_library(ssl_crypto
607610
NAMES crypto libcrypto
608-
PATHS ${LIB_PATH}/${vs_suffix}
611+
PATHS ${LIB_PATH}
612+
PATH_SUFFIXES private ${vs_suffix}
609613
NO_DEFAULT_PATH
610614
NO_CACHE
611615
)

0 commit comments

Comments
 (0)