meson: Only check the first parameter

https://bugzilla.gnome.org/show_bug.cgi?id=781155
This commit is contained in:
Olivier Crete 2017-04-11 11:52:20 -04:00 committed by Thibault Saunier
parent 57fd614e02
commit 7c01da8476

View file

@ -17,7 +17,7 @@ if flexversion_res.returncode() != 0
error('Could not get flex version (@0@)'.format(flexversion_res.stderr()))
endif
flexversion = flexversion_res.stdout().split('\n')[0].split(' ')[-1].strip()
flexversion = flexversion_res.stdout().split('\n')[0].split(' ')[1].strip()
if flexversion.version_compare('<' + flex_min_version)
error('flex version @0@ >= @1@: NO'.format(flexversion, flex_min_version))
else