mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-16 11:44:13 +02:00
Fixing the translation installation for Qt5. Messed up the order of two lines.
This commit is contained in:
+1
-1
@@ -162,8 +162,8 @@ if(QT_VERSION_MAJOR EQUAL 6)
|
|||||||
COMMENT "Updating .ts files from sources/ (lupdate) - developer target, run explicitly"
|
COMMENT "Updating .ts files from sources/ (lupdate) - developer target, run explicitly"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
qt5_add_translation(QM_FILES ${TS_FILES})
|
|
||||||
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
|
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
|
||||||
|
qt5_add_translation(QM_FILES ${TS_FILES})
|
||||||
add_custom_target(update_translations
|
add_custom_target(update_translations
|
||||||
COMMAND $<TARGET_FILE:Qt${QT_VERSION_MAJOR}::lupdate> ${CMAKE_SOURCE_DIR}/sources -ts ${TS_FILES}
|
COMMAND $<TARGET_FILE:Qt${QT_VERSION_MAJOR}::lupdate> ${CMAKE_SOURCE_DIR}/sources -ts ${TS_FILES}
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user