Skip to content

Commit 7599a6e

Browse files
committed
Fix webview msvc build
Signed-off-by: falkTX <[email protected]>
1 parent 3d70898 commit 7599a6e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

cmake/DPF-plugin.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,13 @@ function(dpf__add_plugin_specific_ui_sources NAME USE_WEB_VIEW)
996996
elseif(WIN32 AND USE_WEB_VIEW)
997997
target_sources("${NAME}" PRIVATE
998998
"${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp")
999-
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
1000-
PROPERTIES COMPILE_FLAGS -std=gnu++17)
999+
if (MSVC)
1000+
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
1001+
PROPERTIES COMPILE_FLAGS /std:c++17)
1002+
else()
1003+
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
1004+
PROPERTIES COMPILE_FLAGS -std=gnu++17)
1005+
endif()
10011006
endif()
10021007
endfunction()
10031008

distrho/extra/WebViewWin32.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
START_NAMESPACE_DISTRHO
2626

27-
struct WebView;
27+
class WebView;
2828

2929
WebView* webview_choc_create(const WebViewOptions& opts);
3030
void webview_choc_destroy(WebView*);

0 commit comments

Comments
 (0)