From b905730977205e7ca06d62cf42b638d69dc814d5 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 6 Nov 2014 21:54:59 +0100 Subject: CMakeLists: add -std=c11 to CMAKE_C_FLAGS --- CMakeLists.txt | 7 ++----- 1 file 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) -- cgit v1.2.3-70-g09d2