Skip to content

Commit

Permalink
lib/openssl/meson.build: allow making libcrypto optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 21, 2023
1 parent d2c0a99 commit 138b226
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/openssl/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
libcrypto = dependency('libcrypto', version: '>= 1.1.1')
libcrypto = dependency('libcrypto', version: '>= 1.1.1',
required: get_variable('libcommon_require_libcrypto', true))
if not libcrypto.found()
crypto_dep = libcrypto
subdir_done()
endif

libcrypto = declare_dependency(
compile_args: ['-DOPENSSL_API_COMPAT=0x10100000L'],
dependencies: libcrypto,
Expand Down

0 comments on commit 138b226

Please sign in to comment.