File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -217,13 +217,22 @@ endif()
217
217
218
218
# Translations: Convert the .ts files into .qm files
219
219
set_source_files_properties (${TS_FILES} PROPERTIES OUTPUT_LOCATION ${QTAPP_ROOT} /lang )
220
+
221
+
220
222
if (Qt6_FOUND )
221
- qt_add_lrelease (${APP_NAME} TS_FILES ${TS_FILES} )
223
+ if (${Qt6Core_VERSION} VERSION_LESS "6.7.0" )
224
+ qt_add_lrelease (${APP_NAME} TS_FILES ${TS_FILES} )
225
+ else ()
226
+ # Qt 6.7.0 and later...
227
+ set (LRELEASE_TARGET "${APP_NAME} _lrelease" )
228
+ qt_add_lrelease (TS_FILES ${TS_FILES} LRELEASE_TARGET ${LRELEASE_TARGET} )
229
+ endif ()
222
230
else ()
223
231
qt5_add_translation (QM_FILES ${TS_FILES} )
224
232
set_property (SOURCE ${APP_NAME} APPEND PROPERTY OBJECT_DEPENDS ${QM_FILES} )
225
233
endif ()
226
234
235
+
227
236
if (APPLE )
228
237
set_target_properties (
229
238
${APP_NAME} PROPERTIES
You can’t perform that action at this time.
0 commit comments