Fix Qt5LinguistTools detection/lrelease binary location

Correctly find the Qt5 module that provides the path to Qt5-based lrelease.
Available since >= Qt-5.3.1 which is well below the current minimum for QGIS.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2020-11-23 22:04:50 +01:00
parent 3240f788fe
commit db2fee6c19
No known key found for this signature in database
GPG Key ID: 508AA000E0EE83E0

View File

@ -1,4 +1,5 @@
find_program(QT_LRELEASE_EXECUTABLE NAMES lrelease-qt5 lrelease)
find_package(Qt5LinguistTools REQUIRED)
set(QT_LRELEASE_EXECUTABLE Qt5::lrelease)
macro(ADD_TRANSLATION_FILES _sources )
foreach (_current_FILE ${ARGN})