From ffb64b8e735015a4dbb79013ee5b8f55eb0f4ffd Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Wed, 1 Jun 2022 23:47:52 +0200 Subject: ECMAddQtDesignerPlugin: fix support for Qt6 --- modules/ECMAddQtDesignerPlugin.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.1