dependencies/ui: Fix qt compiler detection when bindir is set
Fixes: #4527
This commit is contained in:
parent
e58f186121
commit
9f675cc55a
|
@ -240,6 +240,8 @@ class QtBaseDependency(ExternalDependency):
|
||||||
|
|
||||||
def gen_bins():
|
def gen_bins():
|
||||||
for b in 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 '{}-{}'.format(b, self.name), b, False
|
||||||
yield b, b, self.required
|
yield b, b, self.required
|
||||||
|
|
||||||
|
@ -253,7 +255,7 @@ class QtBaseDependency(ExternalDependency):
|
||||||
if not p.found():
|
if not p.found():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if b.startswith('lrelease'):
|
if name == 'lrelease':
|
||||||
arg = ['-version']
|
arg = ['-version']
|
||||||
elif mesonlib.version_compare(self.version, '>= 5'):
|
elif mesonlib.version_compare(self.version, '>= 5'):
|
||||||
arg = ['--version']
|
arg = ['--version']
|
||||||
|
|
Loading…
Reference in New Issue