diff --git a/CMakeLists.txt b/CMakeLists.txt index c3a021ef9296..b580d72f055d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}