meson: Search for qmake-qt5 before qmake

The canonical name for the binary is qmake-qt5, and qmake is the
generic name that can also be a qt4 qmake.
This commit is contained in:
Nirbheek Chauhan 2019-01-18 14:41:14 +05:30
parent e7b84b0f6c
commit 9ece93dbd8

View file

@ -49,7 +49,7 @@ if have_cxx and build_gstgl
endif
endif
if not have_qpa_include
qmake = find_program('qmake')
qmake = find_program('qmake-qt5', 'qmake')
if qmake.found()
qt_version = run_command(qmake, '-query', 'QT_VERSION').stdout().strip()
qt_include_dir = run_command(qmake, '-query', 'QT_INSTALL_HEADERS').stdout().strip()