build: simplify HAS_LIBUUID definition

We can just use to_int() instead of having two if branches.
This commit is contained in:
Simon Ser 2021-04-06 11:49:52 +02:00
parent e9361e0492
commit 6721444114
1 changed files with 2 additions and 6 deletions

View File

@ -10,11 +10,7 @@ wlr_files += files(
if features.get('xdg-foreign')
if uuid.found()
add_project_arguments('-DHAS_LIBUUID=@0@'.format(uuid.found().to_int()), language: 'c')
wlr_deps += uuid
add_project_arguments('-DHAS_LIBUUID=1', language: 'c')
else
add_project_arguments('-DHAS_LIBUUID=0', language: 'c')
endif
wlr_files += files('uuid.c')
endif