Skip to content

Commit 7badad1

Browse files
deepin-mozartdeepin-bot[bot]
authored andcommitted
fix: compile faild when use lupdate
should use qt6 lupate instead of qt5 Log: Change-Id: Ic71413da1f26a2d8e122498704ce5968f0d67cd8
1 parent 97d0025 commit 7badad1

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

assets/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
1111
file(GLOB TS_FILES "translations/*.ts")
1212
foreach(TS_FILE IN LISTS TS_FILES)
1313
message(STATUS "process ts file: ${TS_FILE}")
14-
find_program(LUPDATE_COMMAND NAMES lupdate lupdate-Qt${QT_VERSION_MAJOR} lupdate-qt4 lupdate-pro)
14+
find_program(LUPDATE_COMMAND
15+
NAMES
16+
lupdate-Qt6
17+
lupdate
18+
lupdate-qt${QT_VERSION_MAJOR}
19+
lupdate-qt4
20+
lupdate-pro
21+
PATHS
22+
/usr/lib/qt6/bin
23+
/usr/bin
24+
)
1525
if (NOT LUPDATE_COMMAND)
1626
message(FATAL_ERROR "lupdate command not found")
1727
endif()

0 commit comments

Comments
 (0)