From fd38fb712d133d8ab4a62bd038e076679bc1d52c Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 5 Nov 2016 00:51:31 +0700 Subject: [PATCH] CMake: Add compile options --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d83a03..c7fa092 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,8 @@ set(CJSON_VERSION_PATCH 0) set(CJSON_VERSION_SO 1) set(CJSON_VERSION "${CJSON_VERSION_MAJOR}.${CJSON_VERSION_MINOR}.${CJSON_VERSION_PATCH}") +add_compile_options(-ansi -pedantic -Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings) + #cJSON set(PROJ_CJSON cJSON) set(CJSON_LIB cjson)