Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@solidangle.com>2015-11-23 20:22:53 +0300
committerBrecht Van Lommel <brecht@solidangle.com>2015-11-23 20:22:53 +0300
commite556287a3b66bcf37dc138e9f3673dc1318243cb (patch)
tree72e710c260bbd3690fae948b84193b00d432b3aa /CMakeLists.txt
parent880258a0db0813d6a92a62622fe636c0e189badb (diff)
CMake: enable -std=gnu99 for clang and icc.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 507676667c9..cae1c24df33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2774,7 +2774,7 @@ if(WITH_CPP11)
endif()
# Visual Studio has all standards it supports available by default
-if(CMAKE_COMPILER_IS_GNUCC)
+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID MATCHES "Intel")
# Use C99 + GNU extensions, works with GCC, Clang, ICC
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif()