File 0001-Fix-build-with-Qt-6.7.patch of Package cantata

From 29882608c0e0cc002b4b697b857d5cb7548f2e25 Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Sat, 9 Aug 2025 11:02:58 +0200
Subject: [PATCH 1/2] Fix build with Qt < 6.7

Don't let qt_add_lrelease create a CMake target that has no real use.
The 'cantata' target doesn't need to depend on translations processing
since they're not embeded.
---
 translations/CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
index 76bf89c..d3fdfd2 100644
--- a/translations/CMakeLists.txt
+++ b/translations/CMakeLists.txt
@@ -6,7 +6,7 @@ if(Qt${QT_VERSION_MAJOR}LinguistTools_FOUND)
     set(catalogname cantata)
     qt_add_lrelease(
             TS_FILES ${TS_FILES}
-            LRELEASE_TARGET translations
+            NO_TARGET_DEPENDENCY
             QM_FILES_OUTPUT_VARIABLE QM_FILES
     )
     if(WIN32)
@@ -22,7 +22,6 @@ if(Qt${QT_VERSION_MAJOR}LinguistTools_FOUND)
             DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/translations/
         )
     endif()
-    add_dependencies(cantata translations)
 else()
     message(
         "------\n"
-- 
2.50.1

openSUSE Build Service is sponsored by