[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 2 Mar 2014 20:27:39 +0000 (20:27 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 2 Mar 2014 20:27:39 +0000 (20:27 +0000)
* Use the GCC compatible dialect in Clang builds.

svn path=/trunk/; revision=62387

reactos/cmake/gcc.cmake

index d8ea543..9cee334 100644 (file)
@@ -31,6 +31,10 @@ if(GCC_VERSION VERSION_GREATER 4.7)
     add_compile_flags("-mstackrealign")
 endif()
 
+if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+    add_compile_flags_language("-std=gnu89" "C")
+endif()
+
 add_compile_flags_language("-fno-rtti -fno-exceptions" "CXX")
 
 #bug