From b8ac2963654f8a9480e6e20f51de31f9779f478f Mon Sep 17 00:00:00 2001 From: oblique Date: Tue, 31 Mar 2020 13:28:40 +0300 Subject: vcpkg: Support openssl 1.1 linkage --- libssh2-sys/build.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index 5ddc70c..861978d 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -189,9 +189,16 @@ fn try_vcpkg() -> bool { .map(|_| { // found libssh2 which depends on openssl and zlib vcpkg::Config::new() - .lib_name("libeay32") - .lib_name("ssleay32") + .lib_name("libssl") + .lib_name("libcrypto") .probe("openssl") + .or_else(|_| { + // openssl 1.1 was not found, try openssl 1.0 + vcpkg::Config::new() + .lib_name("libeay32") + .lib_name("ssleay32") + .probe("openssl") + }) .expect( "configured libssh2 from vcpkg but could not \ find openssl libraries that it depends on", -- cgit v1.2.3