fix: fix all Windows warnings so apps will compile with /WX

This commit is contained in:
Nick Fisher
2024-10-23 02:41:16 +11:00
parent c3764df4e2
commit 5cf9fab4f2
5 changed files with 10 additions and 24 deletions

View File

@@ -1,17 +1,6 @@
## Windows
## CMakeLists
You will need to disable the `/WX` compiler flag.
In your project, open the `windows/CMakeList.txt` file and find the following line:
`target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")`
Delete the `/WX`:
`target_compile_options(${TARGET} PRIVATE /W4 /wd"4100")`
If you're not a Thermion developer, you can ignore this.
## ANGLE build (not currently working)
To support embedding GPU textures in Flutter (rather than copying to a CPU pixel buffer on every frame), we need to build a slightly customized version of Filament that uses GLES on Windows (rather than the default, which uses OpenGL).