Load WebView2Loader.dll dynamically

This commit is contained in:
Tobias Taschner
2020-01-09 23:04:08 +01:00
parent 6a99e7e273
commit 6750d30102
3 changed files with 48 additions and 7 deletions

View File

@@ -44,7 +44,6 @@ elseif(WXMSW)
set(WEBVIEW2_ARCH x64)
endif()
wx_lib_link_libraries(webview PUBLIC "${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/${WEBVIEW2_ARCH}/WebView2Loader.dll.lib")
add_custom_command(TARGET webview POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/${WEBVIEW2_ARCH}/WebView2Loader.dll"