Apply suggestions from code review

Co-Authored-By: Maarten <MaartenBent@users.noreply.github.com>
This commit is contained in:
Tobias Taschner
2020-01-16 10:15:11 +01:00
committed by GitHub
parent 12c462d424
commit 41f4a21736
3 changed files with 6 additions and 6 deletions

View File

@@ -36,18 +36,18 @@ if(APPLE)
wx_lib_link_libraries(webview PUBLIC "-framework WebKit")
elseif(WXMSW)
if(wxUSE_WEBVIEW_EDGE)
wx_lib_include_directories(webview PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/include)
wx_lib_include_directories(webview PRIVATE "${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/include")
if (${CMAKE_SIZEOF_VOID_P} EQUAL 4)
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
set(WEBVIEW2_ARCH x86)
else()
set(WEBVIEW2_ARCH x64)
endif()
add_custom_command(TARGET webview POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
COMMAND ${CMAKE_COMMAND} -E copy
"${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/${WEBVIEW2_ARCH}/WebView2Loader.dll"
$<TARGET_FILE_DIR:webview>/"WebView2Loader.dll")
"$<TARGET_FILE_DIR:webview>/WebView2Loader.dll")
endif()
elseif(WXGTK)
if(LIBSOUP_FOUND)