diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-20 01:54:14 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-20 01:54:14 +0000 |
| commit | d948508aa22ff273c915397f5aba365ac10bd4e4 (patch) | |
| tree | df290fe8e06965c4a29892c727518cb9f2cf3a40 /RenderScript | |
| parent | Removed jni/Visual GDB build from legacy projects (diff) | |
| download | DiligentTools-d948508aa22ff273c915397f5aba365ac10bd4e4.tar.gz DiligentTools-d948508aa22ff273c915397f5aba365ac10bd4e4.zip | |
Enabling linux build
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) |
