Skip to content

Commit f3855f9

Browse files
committed
meson: explicitly specify fallbacks for uthash and check
Meson 0.55 added automatic fallback to wraps in the subprojects directory and 0.54 added the single-string argument to `fallback`. Use the old two-argument form to properly support fallback on older Meson.
1 parent 0920c92 commit f3855f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,18 @@ if found_uthash
7373
else
7474
# fall back to dependency() rather than subproject() so
7575
# --wrap-mode=nofallback works
76-
uthash = dependency('uthash')
76+
uthash = dependency(
77+
'uthash',
78+
fallback : ['uthash', 'uthash_dep'],
79+
)
7780
endif
7881
if get_option('tests')
7982
check = dependency(
8083
'check',
8184
default_options : [
8285
'warning_level=0',
8386
],
87+
fallback : ['check', 'check_dep'],
8488
version : '>=0.9.6',
8589
)
8690
endif

0 commit comments

Comments
 (0)