From: yuangongji <82787816@qq.com> Date: Tue, 22 Oct 2019 14:29:12 +0000 (+0800) Subject: appveyor: fix openssl version mismatch warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02dc7a1b17552e356707dc61c78ab5a4fa8c8d7d;p=libevent appveyor: fix openssl version mismatch warning yuangongji: "Many warnings appear when building and running with Visual Studio 2019 in Appveyor: WARN C:\projects\libevent\test\regress_ssl.c:210: Version mismatch for openssl: compiled with 1000214f but running with 1000212f Simply add the openssl binary to the "PATH" environment variable to fix it. I wrote a simple demo to reproduce it: https://github.com/ygj6/verify I see there are dozens of openssl libraries in the system of appveyor: https://ci.appveyor.com/project/ygj6/verify/builds/28290688 If you do not specify which openssl to use, the system cannot find the correct library." --- diff --git a/appveyor.yml b/appveyor.yml index 0f06922c..ec9e36b5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -106,6 +106,7 @@ build_script: bash -c $script } else { + $env:PATH="$env:OPENSSL_ROOT/bin;$env:PATH" if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Visual Studio 2017') { $env:BUILD_DIR="build-cmake" }