Don't check capitalized bitsery dep on Meson <0.60

This was added in Meson 0.60, but at the moment it's not worth bumping
the minimum Meson version over.
This commit is contained in:
Robbert van der Helm
2021-12-19 21:08:09 +01:00
parent 975b2fdd0f
commit 4cbcf79a84
+10 -2
View File
@@ -228,8 +228,16 @@ endif
# and 64-bit versions
boost_dep = dependency('boost', version : '>=1.66', static : with_static_boost)
# Bitsery's CMake build definition is capitalized for some reason
bitsery_dep = dependency('bitsery', 'Bitsery', version : '>=5.2.0')
if meson.version().version_compare('>=0.60')
# Bitsery's CMake build definition is capitalized for some reason
bitsery_dep = dependency('bitsery', 'Bitsery', version : '>=5.2.0')
else
# Mmeson <=0.6.0 didn't support multiple names for a dependency, and since at
# the moment this is only relevant for packing on Arch btw, it's probably
# better to remove this conditional later than it is to bump the minimum Meson
# version now.
bitsery_dep = dependency('bitsery', version : '>=5.2.0')
endif
function2_dep = dependency('function2', version : '>=4.0.0')
threads_dep = dependency('threads')
tomlplusplus_dep = dependency('tomlplusplus', version : '>=2.0.0')