From d948508aa22ff273c915397f5aba365ac10bd4e4 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 19 Dec 2017 17:54:14 -0800 Subject: Enabling linux build --- RenderScript/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'RenderScript') 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) -- cgit v1.2.3