[Bf-blender-cvs] [e556287] master: CMake: enable -std=gnu99 for clang and icc.

Brecht Van Lommel noreply at git.blender.org
Mon Nov 23 19:31:04 CET 2015


Commit: e556287a3b66bcf37dc138e9f3673dc1318243cb
Author: Brecht Van Lommel
Date:   Mon Nov 23 18:22:53 2015 +0100
Branches: master
https://developer.blender.org/rBe556287a3b66bcf37dc138e9f3673dc1318243cb

CMake: enable -std=gnu99 for clang and icc.

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5076766..cae1c24 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()




More information about the Bf-blender-cvs mailing list