From ad472f07de1a1ca5e1b09008adc12986a2b94b59 Mon Sep 17 00:00:00 2001 From: Sam Gillam Date: Sun, 22 Sep 2024 21:23:18 -0400 Subject: [PATCH] Fix failing translation file import (fixes recent commit 6304cdcb) Contribution Sponsor: Firestorm (launchfirestorm.com) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3a021ef929..55e04b4947a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -282,10 +282,10 @@ 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") + set_source_files_properties(${TS_SOURCES} PROPERTIES OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/i18n") qt_add_translations(${PROJECT_NAME} TS_FILES ${TS_SOURCES} - RESOURCE_PREFIX "/i18n" + RESOURCE_PREFIX "/" LUPDATE_OPTIONS -no-obsolete ) endif()