Skip to content

Commit

Permalink
Fix webview msvc build
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed May 17, 2024
1 parent 3d70898 commit febe133
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/DPF-plugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,13 @@ function(dpf__add_plugin_specific_ui_sources NAME USE_WEB_VIEW)
elseif(WIN32 AND USE_WEB_VIEW)
target_sources("${NAME}" PRIVATE
"${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp")
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
PROPERTIES COMPILE_FLAGS -std=gnu++17)
if (MSVC)
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
PROPERTIES COMPILE_FLAGS /std:c++17)
else()
set_source_files_properties("${DPF_ROOT_DIR}/distrho/DistrhoUI_win32.cpp"
PROPERTIES COMPILE_FLAGS -std=gnu++17)
endif()
endif()
endfunction()

Expand Down

0 comments on commit febe133

Please sign in to comment.