mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
meson: improve flex version parsing
the output of flex --version can contain more than one space
This commit is contained in:
parent
600f4fb65b
commit
59c31d8d0f
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,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
|
||||
|
|
Loading…
Reference in a new issue