Explorar o código

CMake: Add compile options

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
fd38fb712d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMakeLists.txt

+ 2 - 0
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)