CMake: Improve webview checks

Try to match behavior of configure.
Fix building webview sample with STC disabled.
This commit is contained in:
Maarten Bent
2018-12-03 00:20:38 +01:00
parent 8192d507e3
commit e984857b0e
4 changed files with 38 additions and 20 deletions

View File

@@ -357,7 +357,6 @@ wx_option(wxUSE_DRAGIMAGE "use wxDragImage")
wx_option(wxUSE_UIACTIONSIMULATOR "use wxUIActionSimulator (experimental)")
wx_option(wxUSE_DC_TRANSFORM_MATRIX "use wxDC::SetTransformMatrix and related")
wx_option(wxUSE_WEBVIEW_WEBKIT "use wxWebView WebKit backend")
wx_option(wxUSE_WEBVIEW_WEBKIT2 "use wxWebView WebKit2 backend")
if(WIN32 OR APPLE)
set(wxUSE_PRIVATE_FONTS_DEFAULT ON)
else()