summaryrefslogtreecommitdiffstats
path: root/RenderScript
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-20 01:54:14 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-20 01:54:14 +0000
commitd948508aa22ff273c915397f5aba365ac10bd4e4 (patch)
treedf290fe8e06965c4a29892c727518cb9f2cf3a40 /RenderScript
parentRemoved jni/Visual GDB build from legacy projects (diff)
downloadDiligentTools-d948508aa22ff273c915397f5aba365ac10bd4e4.tar.gz
DiligentTools-d948508aa22ff273c915397f5aba365ac10bd4e4.zip
Enabling linux build
Diffstat (limited to 'RenderScript')
-rw-r--r--RenderScript/CMakeLists.txt3
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)