diff --git a/util/meson.build b/util/meson.build index 8c988b23a..9d3f15872 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