aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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