diff --git a/meson.build b/meson.build index a15686cc4e3..973e8890bbd 100644 --- a/meson.build +++ b/meson.build @@ -1579,10 +1579,7 @@ if uuidopt != 'none' elif uuidopt == 'ossp' # In upstream, the package and library is called just 'uuid', but many # distros change it to 'ossp-uuid'. - uuid = dependency('ossp-uuid', required: false) - if not uuid.found() - uuid = dependency('uuid', required: false) - endif + uuid = dependency('ossp-uuid', 'uuid', required: false) uuidfunc = 'uuid_export' uuidheader = 'uuid.h'