From 2c201c2140f9a75f3698e988880f00f8d0492315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 27 Apr 2017 21:13:08 -0400 Subject: meson: use booleans for conf.set and drop unecessary conditionals Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted. --- man/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man/meson.build') diff --git a/man/meson.build b/man/meson.build index 9cdb560c4c..6f7b1e8793 100644 --- a/man/meson.build +++ b/man/meson.build @@ -50,7 +50,7 @@ foreach tuple : manpages mandirn = join_paths(get_option('mandir'), 'man' + section) - if condition == '' or conf.get(condition, 0) == 1 + if condition == '' or conf.get(condition, false) p1 = custom_target( man, input : xml, -- cgit v1.2.1