really switch to qmake automatically if pkg-config fails

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
pull/3491/head
Alexis Jeandet 7 years ago
parent 51868d00e7
commit 0045d95a16
  1. 2
      mesonbuild/dependencies/ui.py

@ -173,7 +173,7 @@ class QtBaseDependency(ExternalDependency):
if DependencyMethods.PKGCONFIG in self.methods:
self._pkgconfig_detect(mods, kwargs)
methods.append('pkgconfig')
if not self.is_found and DependencyMethods.QMAKE in self.methods:
if not self.is_found or DependencyMethods.QMAKE in self.methods:
from_text = self._qmake_detect(mods, kwargs)
methods.append('qmake-' + self.name)
methods.append('qmake')

Loading…
Cancel
Save