diff --git a/src/modules/webview/CMakeLists.txt b/src/modules/webview/CMakeLists.txt index ef21403ff..c4b0107a3 100644 --- a/src/modules/webview/CMakeLists.txt +++ b/src/modules/webview/CMakeLists.txt @@ -6,7 +6,7 @@ list( APPEND CALA_WEBVIEW_LINK_LIBRARIES ) -if ( "${QT_VERSION}" VERSION_LESS "5.6" ) +if ( Qt5Core_VERSION VERSION_LESS 5.6 ) find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED WebKit WebKitWidgets ) list( APPEND CALA_WEBVIEW_INCLUDE_DIRECTORIES