Skip to content

Commit

Permalink
Fix failing translation file import (partial revert of 6304cdc)
Browse files Browse the repository at this point in the history
Contribution Sponsor: Firestorm (launchfirestorm.com)
  • Loading branch information
gillamkid committed Sep 23, 2024
1 parent 98350a1 commit 1065e17
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,8 @@ qt_add_executable(${PROJECT_NAME}
)

if(Qt6LinguistTools_FOUND)
# TODO: Update to new qt_add_translations form in Qt6.7
file(GLOB TS_SOURCES ${CMAKE_SOURCE_DIR}/translations/qgc_*.ts)
set_source_files_properties(${TS_SOURCES} PROPERTIES OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/translations")
qt_add_translations(${PROJECT_NAME}
TS_FILES ${TS_SOURCES}
RESOURCE_PREFIX "/i18n"
LUPDATE_OPTIONS -no-obsolete
)
file(GLOB TS_SOURCES RELATIVE ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/translations/qgc_*.ts)
qt_add_translations(${PROJECT_NAME} TS_FILES ${TS_SOURCES}) # TODO: Update to new qt_add_translations form in Qt6.7
endif()

set_target_properties(${PROJECT_NAME}
Expand Down

0 comments on commit 1065e17

Please sign in to comment.