aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMAddQtDesignerPlugin.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ECMAddQtDesignerPlugin.cmake')
-rw-r--r--modules/ECMAddQtDesignerPlugin.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ECMAddQtDesignerPlugin.cmake b/modules/ECMAddQtDesignerPlugin.cmake
index eaf3660f..7d3dfb69 100644
--- a/modules/ECMAddQtDesignerPlugin.cmake
+++ b/modules/ECMAddQtDesignerPlugin.cmake
@@ -618,7 +618,7 @@ QList<QDesignerCustomWidgetInterface*> ${_collection_classname}::customWidgets()
# setup plugin binary
add_library(${target} MODULE ${_srcs})
- if(Qt5UiPlugin_VERSION AND NOT Qt5UiPlugin_VERSION VERSION_LESS "5.9.0")
+ if(Qt5UiPlugin_VERSION AND Qt5UiPlugin_VERSION VERSION_GREATER_EQUAL 5.9.0)
list(APPEND ARGS_LINK_LIBRARIES Qt5::UiPlugin)
else()
# For Qt <5.9 include dir variables needed