mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 23:57:54 +08:00
ffbff8caab
* [harfbuzz] Fix build on Linux * [cairo] Fix build on Linux * [pango] Fix build on Linux * [wt] Fix build on Linux * [wt] Fix linking with -lcrypto
47 lines
962 B
Diff
47 lines
962 B
Diff
diff --git a/cmake/WtFindSsl.txt b/cmake/WtFindSsl.txt
|
|
index c5f7bbc8..6e2c2f4d 100644
|
|
--- a/cmake/WtFindSsl.txt
|
|
+++ b/cmake/WtFindSsl.txt
|
|
@@ -121,6 +121,16 @@ ELSEIF(APPLE)
|
|
/usr/local/lib
|
|
NO_DEFAULT_PATH
|
|
)
|
|
+ FIND_LIBRARY(CRYPTO_LIB
|
|
+ NAMES
|
|
+ crypto
|
|
+ PATHS
|
|
+ ${SSL_PREFIX}/lib
|
|
+ ${SSL_PREFIX}/lib/VC
|
|
+ /usr/lib
|
|
+ /usr/local/lib
|
|
+ NO_DEFAULT_PATH
|
|
+ )
|
|
ELSE (WIN32)
|
|
FIND_LIBRARY(SSL_LIB
|
|
NAMES
|
|
@@ -131,6 +141,15 @@ ELSE (WIN32)
|
|
/usr/lib
|
|
/usr/local/lib
|
|
)
|
|
+ FIND_LIBRARY(CRYPTO_LIB
|
|
+ NAMES
|
|
+ crypto
|
|
+ PATHS
|
|
+ ${SSL_PREFIX}/lib
|
|
+ ${SSL_PREFIX}/lib/VC
|
|
+ /usr/lib
|
|
+ /usr/local/lib
|
|
+ )
|
|
ENDIF (WIN32)
|
|
|
|
IF(SSL_LIB
|
|
@@ -144,7 +163,7 @@ IF(SSL_LIB
|
|
ENDIF(SSL_TOO_LIB)
|
|
ELSE(WIN32)
|
|
SET(SSL_FOUND true)
|
|
- SET(SSL_LIBRARIES ${SSL_LIB} -lcrypto)
|
|
+ SET(SSL_LIBRARIES ${SSL_LIB} ${CRYPTO_LIB})
|
|
ENDIF(WIN32)
|
|
ENDIF(SSL_LIB
|
|
AND SSL_INCLUDE_DIRS)
|