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:
-rw-r--r--CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5317ccb724..7319a34d11b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2768,9 +2768,8 @@ if(WITH_CPP11)
endif()
endif()
-if(MSVC)
- # Visual Studio has all standards it supports available by default
-else()
+# Visual Studio has all standards it supports available by default
+if(CMAKE_COMPILER_IS_GNUCC)
# Use C99 + GNU extensions, works with GCC, Clang, ICC
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif()