From 672144411463e731150ab2675d4b553677fd08ec Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 6 Apr 2021 11:49:52 +0200 Subject: [PATCH] build: simplify HAS_LIBUUID definition We can just use to_int() instead of having two if branches. --- util/meson.build | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/util/meson.build b/util/meson.build index 8c988b23..9d3f1587 100644 --- a/util/meson.build +++ b/util/meson.build @@ -10,11 +10,7 @@ wlr_files += files( if features.get('xdg-foreign') - if uuid.found() - wlr_deps += uuid - add_project_arguments('-DHAS_LIBUUID=1', language: 'c') - else - add_project_arguments('-DHAS_LIBUUID=0', language: 'c') - endif + add_project_arguments('-DHAS_LIBUUID=@0@'.format(uuid.found().to_int()), language: 'c') + wlr_deps += uuid wlr_files += files('uuid.c') endif