diff --git a/meson.build b/meson.build index 641a5155..caf3af0e 100644 --- a/meson.build +++ b/meson.build @@ -19,7 +19,6 @@ conf_data = configuration_data({ 'PCSCLITE_HP_DROPDIR' : '"' + get_option('usbdropdir') + '"', 'HAVE_NANOSLEEP' : true, 'NO_LOG' : get_option('embedded'), - 'FILTER_NAMES' : get_option('filter_names'), }) # for generated files from .in templates sbindir = join_paths(get_option('prefix') , get_option('sbindir')) @@ -56,6 +55,11 @@ if get_option('serial') features += 'serial' endif +if get_option('filter_names') + conf_data.set('FILTER_NAMES', true) + features += 'filter_names' +endif + # flex generator gen_flex = generator(find_program('flex'), output : '@BASENAME@.c',