build(windows): suppress STL1011 для <experimental/coroutine> в inappwebview

This commit is contained in:
klockky
2026-06-23 15:21:34 +03:00
parent 817c5b0174
commit 38c3f21003
+5
View File
@@ -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
# <experimental/coroutine> 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