diff options
Diffstat (limited to 'RenderScript')
| -rw-r--r-- | RenderScript/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/RenderScript/CMakeLists.txt b/RenderScript/CMakeLists.txt index df7b3fe..aef4334 100644 --- a/RenderScript/CMakeLists.txt +++ b/RenderScript/CMakeLists.txt @@ -71,6 +71,13 @@ PUBLIC include ) +if(PLATFORM_ANDROID) + # Suppress warnings from applying the ‘offsetof’ macro to a non-POD type + # warning: offset of on non-standard-layout type [-Winvalid-offsetof] + # This is OK because the warning is generated for simple structs (such as TextureDesc) + # that fail to be a POD type only by virtue of having a constructor and comparison operator + target_compile_options(RenderScript PRIVATE -Wno-invalid-offsetof) +endif() source_group("source" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) |
