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."
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"
}