Commit 91f99b22 authored by Jakub Adam's avatar Jakub Adam

meson: Add fallback for openssl

parent 8a6b7420
...@@ -188,7 +188,8 @@ if opt_cryptolib != 'openssl' ...@@ -188,7 +188,8 @@ if opt_cryptolib != 'openssl'
if opt_cryptolib != 'auto' if opt_cryptolib != 'auto'
error('GnuTLS requested as crypto library, but not found') error('GnuTLS requested as crypto library, but not found')
endif endif
crypto_dep = dependency('openssl', required: false) crypto_dep = dependency('openssl', required: false,
fallback: ['openssl', 'openssl_dep'])
cdata.set('HAVE_OPENSSL', crypto_dep.found()) cdata.set('HAVE_OPENSSL', crypto_dep.found())
endif endif
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment