WEBVIEW_FORCE_WEBKIT option for webview module.

This commit is contained in:
Teo Mrnjavac 2016-04-22 15:56:37 +02:00
parent 10aa5a5653
commit c1992f8062

View File

@ -5,8 +5,9 @@ list( APPEND CALA_WEBVIEW_LINK_LIBRARIES
calamaresui
)
option( WEBVIEW_FORCE_WEBKIT "Always build webview with WebKit instead of WebEngine regardless of Qt version." OFF)
if ( Qt5Core_VERSION VERSION_LESS 5.6 )
if ( Qt5Core_VERSION VERSION_LESS 5.6 OR WEBVIEW_FORCE_WEBKIT )
find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED WebKit WebKitWidgets )
list( APPEND CALA_WEBVIEW_INCLUDE_DIRECTORIES