CMake: Download SDK when wxUSE_WEBVIEW_EDGE=ON
Automatically download the WebView2 SDK from nuget (official repo for the SDK) when enabling wxUSE_WEBVIEW_EDGE to simplify usage. Copying to 3rdparty/webview2 is still supported optionally.
This commit is contained in:
@@ -445,7 +445,8 @@ if(WIN32)
|
||||
else()
|
||||
set(wxUSE_WINRT_DEFAULT OFF)
|
||||
endif()
|
||||
if(MSVC_VERSION GREATER 1800 AND NOT CMAKE_VS_PLATFORM_TOOLSET MATCHES "_xp$")
|
||||
if(MSVC_VERSION GREATER 1800 AND NOT CMAKE_VS_PLATFORM_TOOLSET MATCHES "_xp$" AND
|
||||
EXISTS "${wxSOURCE_DIR}/3rdparty/webview2")
|
||||
set(wxUSE_WEBVIEW_EDGE_DEFAULT ON)
|
||||
else()
|
||||
set(wxUSE_WEBVIEW_EDGE_DEFAULT OFF)
|
||||
|
Reference in New Issue
Block a user