]> granicus.if.org Git - libevent/commitdiff
appveyor: fix openssl version mismatch warning
authoryuangongji <82787816@qq.com>
Tue, 22 Oct 2019 14:29:12 +0000 (22:29 +0800)
committerAzat Khuzhin <azat@libevent.org>
Sat, 16 Nov 2019 23:42:42 +0000 (02:42 +0300)
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."

appveyor.yml

index 0f06922c4650388eaa5a6fd6b262c23c27754309..ec9e36b518894013e08d3bd6cce3c0cd557b7f92 100644 (file)
@@ -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"
         }