aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-05 07:47:25 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-05 07:49:01 +0100
commit1f4c8acc5175af3ef7a348547ffdb18e334ce515 (patch)
treef4f3c761a6cf2f13600f608c4a3d246a135b3883
parentd72c229ce1e982ef67a7f28b8bbf7365de9090dc (diff)
downloadyawa-1f4c8acc5175af3ef7a348547ffdb18e334ce515.tar.xz
CMakeLists.txt: Use clang, -Weverything and c110.0.1
The ADD_DEFINITIONS part should be dropped whene cmake 3.1 is released since it will have support for CMAKE_C_STANDARD
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee94531..55620e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,13 @@ configure_file(
${CMAKE_SOURCE_DIR}/src/config.h
)
+set(CMAKE_C_COMPILER "/usr/bin/clang")
+set(CMAKE_C_FLAGS "-Weverything")
+set(CMAKE_C_STANDARD 11)
+add_definitions(
+ -std=c11
+)
+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_subdirectory("src")