aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-11 17:10:59 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-11 17:10:59 +0100
commit7052961718cf3a672974fcd5514021a086ba8a42 (patch)
treea0dd981b7c846fc24a8ba8521c0a4064f713b53c
parent3e0f9c4740c03c6b05e6df5a37c81ed718c38e2a (diff)
downloadyawa-7052961718cf3a672974fcd5514021a086ba8a42.tar.xz
CmakeLists: use CMAKE_C_FLAGS when setting it again
Fixes support for the CFLAGS env var
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b99ce2a..4058a2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ configure_file(
)
set(CMAKE_C_COMPILER "clang")
-set(CMAKE_C_FLAGS "-Weverything -std=c11")
+set(CMAKE_C_FLAGS "-Weverything ${CMAKE_C_FLAGS}")
set(CMAKE_C_STANDARD 11)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)