diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 2667668..4f40850 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -32,6 +32,11 @@ set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") # Use Unicode for all projects. add_definitions(-DUNICODE -D_UNICODE) +# Newer MSVC toolchains (VS 2022 17.13+/VS 18) turn the deprecated +# header used by flutter_inappwebview_windows into a +# hard error (STL1011). Suppress it project-wide so plugins keep building. +add_compile_definitions(_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS) + # Compilation settings that should be applied to most targets. # # Be cautious about adding new options here, as plugins use this function by