Skip to content

Commit a29d44f

Browse files
committed
meson: reduce minimum supported Meson version to 0.50
The only Meson feature we use that requires > 0.50 is meson.override_dependency(), which can safely be skipped on older versions.
1 parent f89f115 commit a29d44f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

meson.build

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(
77
'warning_level=2',
88
],
99
license : 'MIT',
10-
meson_version : '>=0.54',
10+
meson_version : '>=0.50',
1111
version : '0.1.0',
1212
)
1313
if not meson.is_subproject()
@@ -172,7 +172,9 @@ libdicom_dep = declare_dependency(
172172
include_directories : library_includes,
173173
link_with : libdicom,
174174
)
175-
meson.override_dependency('libdicom', libdicom_dep)
175+
if meson.version().version_compare('>=0.54')
176+
meson.override_dependency('libdicom', libdicom_dep)
177+
endif
176178

177179
# tools
178180
executable(

0 commit comments

Comments
 (0)