Fixing the translation installation for Qt5. Messed up the order of two lines.

This commit is contained in:
Andre Rummler
2026-08-11 09:42:58 +02:00
parent 8d08c3fd56
commit 8cfb777fe1
+1 -1
View File
@@ -162,8 +162,8 @@ if(QT_VERSION_MAJOR EQUAL 6)
COMMENT "Updating .ts files from sources/ (lupdate) - developer target, run explicitly"
)
else()
qt5_add_translation(QM_FILES ${TS_FILES})
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
qt5_add_translation(QM_FILES ${TS_FILES})
add_custom_target(update_translations
COMMAND $<TARGET_FILE:Qt${QT_VERSION_MAJOR}::lupdate> ${CMAKE_SOURCE_DIR}/sources -ts ${TS_FILES}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}