File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,30 +11,6 @@ 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
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- )
25- if (NOT LUPDATE_COMMAND)
26- message (FATAL_ERROR "lupdate command not found" )
27- endif ()
28- execute_process (COMMAND ${LUPDATE_COMMAND} "${CMAKE_SOURCE_DIR} /src/" -ts -no-obsolete
29- "${TS_FILE} "
30- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
31- OUTPUT_VARIABLE OUTPUT
32- ERROR_VARIABLE ERROR
33- RESULT_VARIABLE RES )
34- if (RES)
35- message (FATAL_ERROR "process ts file result : ${RES} , with error: ${ERROR} " )
36- endif ()
37- message (STATUS "${OUTPUT} " )
3814 execute_process (COMMAND lrelease ${TS_FILE} )
3915 endforeach ()
4016endif ()
You can’t perform that action at this time.
0 commit comments