summaryrefslogtreecommitdiff
path: root/sci-geosciences/qgis/files/qgis-3.16.1-find-qt5linguisttools.patch
blob: 01f60269439546bfba55247d15b047537a1e8ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From db2fee6c199a34507e5742b2360d594a5bf67b18 Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Mon, 23 Nov 2020 22:04:50 +0100
Subject: [PATCH] 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>
---
 i18n/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt
index a836e5cae5..7d7f79da89 100644
--- a/i18n/CMakeLists.txt
+++ b/i18n/CMakeLists.txt
@@ -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})
-- 
2.29.2