aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2022-06-01 23:47:52 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2022-06-01 23:47:52 +0200
commitffb64b8e735015a4dbb79013ee5b8f55eb0f4ffd (patch)
tree74a32ec2f49232bdf8487fedb9b7a5debdc8314f
parenteaca16179698b59bdc6a54005f86e020aa9a575b (diff)
downloadextra-cmake-modules-ffb64b8e735015a4dbb79013ee5b8f55eb0f4ffd.tar.gz
extra-cmake-modules-ffb64b8e735015a4dbb79013ee5b8f55eb0f4ffd.tar.bz2
ECMAddQtDesignerPlugin: fix support for Qt6
-rw-r--r--modules/ECMAddQtDesignerPlugin.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/ECMAddQtDesignerPlugin.cmake b/modules/ECMAddQtDesignerPlugin.cmake
index 8c638f4f..e3360885 100644
--- a/modules/ECMAddQtDesignerPlugin.cmake
+++ b/modules/ECMAddQtDesignerPlugin.cmake
@@ -536,7 +536,11 @@ macro(ecm_add_qtdesignerplugin target)
)
file(REMOVE "${_rc_work_file}")
- qt5_add_resources(_srcs ${_rc_file})
+ if (QT_MAJOR_VERSION EQUAL "5")
+ qt5_add_resources(_srcs ${_rc_file})
+ else()
+ qt6_add_resources(_srcs ${_rc_file})
+ endif()
endif()
# generate source file