summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 9da1cdb9f9a..1e8ab0f5d00 100644
--- a/meson.build
+++ b/meson.build
@@ -1423,7 +1423,9 @@ if uuidopt != 'none'
uuidfunc = 'uuid_to_string'
uuidheader = 'uuid.h'
elif uuidopt == 'ossp'
- uuid = dependency('ossp-uuid', required: false)
+ # In upstream, the package and library is called just 'uuid', but many
+ # distros change it to 'ossp-uuid'.
+ uuid = dependency('ossp-uuid', 'uuid', required: false)
uuidfunc = 'uuid_export'
uuidheader = 'uuid.h'
@@ -1431,8 +1433,6 @@ if uuidopt != 'none'
# windows installs neither a pkg-config nor a cmake dependency
# information. Nor is there another supported uuid implementation
# available on windows.
- #
- # Sometimes the ossp-uuid library is named 'uuid' sometimes 'ossp-uuid'
if not uuid.found()
uuid = cc.find_library('ossp-uuid',
required: false, dirs: test_lib_d,