meson: specify correct minimum versions of Meson

The main project doesn't really have any specific version requirement.
Specify a very low one just in case -- 0.37.0 is old enough to cover
probably any existing use of Meson anywhere in the wild, and
coincidentally is also the version that Meson started adding feature
warnings for, to notify you if you use too-new features.

The example *does* depend on a specific version. It needs 0.55.0 in
order to use subproject wrap dependency fallback instead of the legacy
style of specifying the name of the variable as a fallback. Ensure that
is used.
This commit is contained in:
Eli Schwartz
2022-06-19 13:41:58 -04:00
parent ae10bd1268
commit 0129cf5b11
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#
# license: MIT
#
project('example-4', 'c')
project('example-4', 'c', meson_version: '>= 0.55.0')
unity_dep = dependency('unity')

View File

@ -5,7 +5,7 @@
# license: MIT
#
project('unity', 'c',
meson_version: '>=0.62.0',
meson_version: '>=0.37.0',
default_options: ['werror=true', 'c_std=c11'])
subdir('src')