diff --git a/filament/backend/CMakeLists.txt b/filament/backend/CMakeLists.txt index 3878723f43..c7ffc6cb88 100644 --- a/filament/backend/CMakeLists.txt +++ b/filament/backend/CMakeLists.txt @@ -388,6 +388,9 @@ else() -Wover-aligned -Werror ) + if (CMAKE_CXX_STANDARD EQUAL 20) + list(APPEND FILAMENT_WARNINGS -Wno-deprecated-this-capture) + endif() endif() if (APPLE)