Fix Windows build with MSVC.

PiperOrigin-RevId: 934812811
Change-Id: I45381b180d9120d8bfab5b10f50accf617607f8c
This commit is contained in:
Michael Moss
2026-06-19 02:23:59 -07:00
committed by Copybara-Service
parent 71721ed8e6
commit 976476c482
+1 -1
View File
@@ -498,7 +498,7 @@ diff --git a/filament/backend/CMakeLists.txt b/filament/backend/CMakeLists.txt
@@ -525,3 +525,7 @@
endif()
+if (WIN32)
+if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ list(APPEND FILAMENT_WARNINGS -Wno-error=cast-function-type-mismatch -Wno-error=unused-variable -Wno-error=microsoft-unqualified-friend)
+endif()
+