diff options
Diffstat (limited to 'RenderScript')
| -rw-r--r-- | RenderScript/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RenderScript/CMakeLists.txt b/RenderScript/CMakeLists.txt index aef4334..0521027 100644 --- a/RenderScript/CMakeLists.txt +++ b/RenderScript/CMakeLists.txt @@ -71,7 +71,8 @@ PUBLIC include ) -if(PLATFORM_ANDROID) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR + CMAKE_CXX_COMPILER_ID MATCHES "GNU") # 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) |
