From f2f9c547b01a2b4e7992e37a819c3bb4b8ff868a Mon Sep 17 00:00:00 2001 From: Evan Mezeske Date: Fri, 25 Oct 2024 11:10:46 -0700 Subject: [PATCH] Fix clang c++20 compilation under debug mode as well. (#8233) * Fix clang c++20 compilation under debug mode as well. * Fix whitespace --- filament/backend/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)