aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-02-28 06:09:04 -0500
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-28 08:18:24 -0300
commitef6933bd609e4f353f54fef8897cda217b295e34 (patch)
tree26411466e2329b7a3afa672e2ae65d0a49cc5a27
parentfe226f5376a674626267f1128e7b1844c5b870a1 (diff)
downloadrneovim-ef6933bd609e4f353f54fef8897cda217b295e34.tar.gz
rneovim-ef6933bd609e4f353f54fef8897cda217b295e34.tar.bz2
rneovim-ef6933bd609e4f353f54fef8897cda217b295e34.zip
Setup better warning flags for Clang.
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2916eb321..da001b7b57 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# If the C compiler is some GNU-alike, use the gnu99 standard and enable all warnings.
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99")
+elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99")
endif(CMAKE_COMPILER_IS_GNUCC)
add_definitions(-DHAVE_CONFIG_H)