This commit is contained in:
Kovid Goyal 2017-01-09 06:37:32 +05:30
parent 935e7a975f
commit c4bcceb440

View File

@ -72,7 +72,7 @@ def init_env(debug=False, asan=False):
ver = subprocess.check_output('pkg-config --modversion glew'.split()).decode('utf-8').strip()
except Exception:
ver = 'not found'
major = int(re.match(r'\d+', ver))
major = int(re.match(r'\d+', ver).group())
if major < 2:
raise SystemExit('glew >= 2.0.0 is required, found version: ' + ver)
cflags.extend(pkg_config('glew', '--cflags-only-I'))