From 8b1634930fec18b37332e2bc858328eaf4c186ca Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Tue, 14 Sep 2021 20:57:30 -0700 Subject: tests: skip aes test if elements not built In ext/aes/meson.build, the aes_dep will return not-found if -Daes=disabled, regardless of whether openssl is found or not. Thus, we don't need a separate check for the option. This will also ensure that aes_dep is always defined and we can use it in the tests/check/meson.build unit. Fixes #1660 v2: handle -Daes=disabled, too. Part-of: --- ext/aes/meson.build | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ext') diff --git a/ext/aes/meson.build b/ext/aes/meson.build index c83049234..a200b8d7d 100644 --- a/ext/aes/meson.build +++ b/ext/aes/meson.build @@ -5,11 +5,6 @@ aes_sources = [ 'gstaesdec.c', ] -aes_option = get_option('aes') -if aes_option.disabled() - subdir_done() -endif - aes_cargs = [] aes_dep = dependency('openssl', required : get_option('aes')) if aes_dep.found() -- cgit v1.2.1