Skip to content

meson.build: Fix OpenSSL detection on Visual Studio

Chun-wei Fan requested to merge openssl-check-msvc into master

Hi,

From the commit message (it must have been quite some time since I last built glib-networking):

Unfortunately, commit 6ea390c5 broke how OpenSSL is being looked for on Visual Studio-style builds, because in Meson's Visual Studio support no 'lib' is prepended to the library name that is being passed into Meson's 'cc.find_library()', and OpenSSL's build files for Visual Studio do prepend all the .lib's with 'lib', except for its pre-1.1.x SSL/TLS library (ssleay32.lib).

This fixes the check by prepending the library names with 'lib' where needed

With blessings, thank you!

Merge request reports