35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
|
From fa44b11bc2b36d5c3cfc5c3403ea75b2fff57253 Mon Sep 17 00:00:00 2001
|
||
|
From: Christoph Cullmann <cullmann@kde.org>
|
||
|
Date: Sun, 26 May 2024 18:33:33 +0200
|
||
|
Subject: [PATCH] use normal resource adding, big resource variant has issue
|
||
|
with LTO
|
||
|
|
||
|
---
|
||
|
src/lib/CMakeLists.txt | 6 +++++-
|
||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
|
||
|
index e48584010..e8c9e0ac9 100644
|
||
|
--- a/src/lib/CMakeLists.txt
|
||
|
+++ b/src/lib/CMakeLists.txt
|
||
|
@@ -1,6 +1,9 @@
|
||
|
# helper functions to ensure we load the icon theme
|
||
|
set(kbreezeicons_SRCS breezeicons.cpp)
|
||
|
|
||
|
+# avoid dependency cycle with add resource
|
||
|
+set(CMAKE_AUTOMOC OFF)
|
||
|
+
|
||
|
# generate resource file for all breeze icons
|
||
|
set(RESOURCE_FILE ${CMAKE_CURRENT_BINARY_DIR}/breeze-icons.qrc)
|
||
|
set(RESOURCE_FILE_BINARY ${CMAKE_CURRENT_BINARY_DIR}/breeze-icons.rcc)
|
||
|
@@ -21,7 +24,8 @@ if(BINARY_ICONS_RESOURCE)
|
||
|
install(FILES ${RESOURCE_FILE_BINARY} DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/breeze)
|
||
|
endif()
|
||
|
|
||
|
-qt_add_big_resources(kbreezeicons_resource_SRCS
|
||
|
+# use normal resource adding, big resource variant has issue with LTO
|
||
|
+qt_add_resources(kbreezeicons_resource_SRCS
|
||
|
${RESOURCE_FILE}
|
||
|
OPTIONS --root /icons/breeze
|
||
|
)
|