From c6e575539a4c0f370df65d15001e7f1b942b7e91 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Mon, 17 May 2021 11:44:44 +0200 Subject: Clean ECM files after the minimum version change - Remove deprecated version checks - Use VERSION_GREATER_EQUAL --- modules/ECMAddQtDesignerPlugin.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ECMAddQtDesignerPlugin.cmake') 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 ${_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 -- cgit v1.2.1