diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 11:49:52 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-06 20:34:47 +0200 |
commit | 672144411463e731150ab2675d4b553677fd08ec (patch) | |
tree | a28b6354d5c5b6f6cad6cd822320205dea6f7c07 | |
parent | e9361e0492d7427fded4e7c2871d43a1abb3ab0c (diff) |
build: simplify HAS_LIBUUID definition
We can just use to_int() instead of having two if branches.
-rw-r--r-- | util/meson.build | 8 |
1 files 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 |