Fix dynamic loading of openssl libraries on windows (#3912)
This commit is contained in:
parent
e84409c0cf
commit
1eb766b9d8
2 changed files with 6 additions and 2 deletions
|
@ -41,6 +41,10 @@ environment:
|
||||||
vcpkg_arch: x86
|
vcpkg_arch: x86
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- cd C:\Tools\vcpkg
|
||||||
|
- git pull -q
|
||||||
|
- .\bootstrap-vcpkg.bat
|
||||||
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
- vcpkg remove --outdated --recurse
|
- vcpkg remove --outdated --recurse
|
||||||
- vcpkg install openssl protobuf liblzma zlib --triplet %vcpkg_arch%-windows
|
- vcpkg install openssl protobuf liblzma zlib --triplet %vcpkg_arch%-windows
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ set(_OPENSSL_ROOT_HINTS_AND_PATHS
|
||||||
|
|
||||||
# For OpenSSL < 1.1, they are named libeay32 and ssleay32 and even if the dll is 64bit, it's still suffixed as *32.dll
|
# For OpenSSL < 1.1, they are named libeay32 and ssleay32 and even if the dll is 64bit, it's still suffixed as *32.dll
|
||||||
# For OpenSSL >= 1.1, they are named libcrypto and libssl with no suffix
|
# For OpenSSL >= 1.1, they are named libcrypto and libssl with no suffix
|
||||||
FIND_FILE(WIN32SSLRUNTIME_LIBEAY NAMES libeay32.dll libcrypto.dll ${_OPENSSL_ROOT_HINTS_AND_PATHS})
|
FIND_FILE(WIN32SSLRUNTIME_LIBEAY NAMES libcrypto-1_1.dll libcrypto.dll libeay32.dll ${_OPENSSL_ROOT_HINTS_AND_PATHS})
|
||||||
FIND_FILE(WIN32SSLRUNTIME_SSLEAY NAMES ssleay32.dll libssl.dll ${_OPENSSL_ROOT_HINTS_AND_PATHS})
|
FIND_FILE(WIN32SSLRUNTIME_SSLEAY NAMES libssl-1_1.dll libssl.dll ssleay32.dll ${_OPENSSL_ROOT_HINTS_AND_PATHS})
|
||||||
|
|
||||||
|
|
||||||
IF(WIN32SSLRUNTIME_LIBEAY AND WIN32SSLRUNTIME_SSLEAY)
|
IF(WIN32SSLRUNTIME_LIBEAY AND WIN32SSLRUNTIME_SSLEAY)
|
||||||
|
|
Loading…
Reference in a new issue