aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-06 21:54:59 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-06 21:54:59 +0100
commitb905730977205e7ca06d62cf42b638d69dc814d5 (patch)
tree4a24db41d4b6290195f4bacf81d94c7215cc10f4
parent382708a1c94c9ccf2c013e240ad11584d105447d (diff)
downloadyawa-b905730977205e7ca06d62cf42b638d69dc814d5.tar.xz
CMakeLists: add -std=c11 to CMAKE_C_FLAGS
-rw-r--r--CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ea346d..c75092e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,12 +12,9 @@ configure_file(
${CMAKE_SOURCE_DIR}/src/config.h
)
-set(CMAKE_C_COMPILER "clang")
-set(CMAKE_C_FLAGS "-Weverything")
+set(CMAKE_C_COMPILER "clang")
+set(CMAKE_C_FLAGS "-Weverything -std=c11")
set(CMAKE_C_STANDARD 11)
-add_definitions(
- -std=c11
-)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)