dependencies/ui: Fix qt compiler detection when bindir is set

Fixes: #4527
pull/4549/head
Dylan Baker 6 years ago committed by Jussi Pakkanen
parent e58f186121
commit 9f675cc55a
  1. 4
      mesonbuild/dependencies/ui.py

@ -240,6 +240,8 @@ class QtBaseDependency(ExternalDependency):
def gen_bins():
for b in bins:
if self.bindir:
yield os.path.join(self.bindir, b), b, False
yield '{}-{}'.format(b, self.name), b, False
yield b, b, self.required
@ -253,7 +255,7 @@ class QtBaseDependency(ExternalDependency):
if not p.found():
continue
if b.startswith('lrelease'):
if name == 'lrelease':
arg = ['-version']
elif mesonlib.version_compare(self.version, '>= 5'):
arg = ['--version']

Loading…
Cancel
Save