From 2887216642134ad1f24d4aa87f78830c6d8fd0c2 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Wed, 5 Feb 2020 17:00:27 +0900 Subject: [PATCH] Add build option -Wall -Werror Change-Id: Ic4cfc6347d38e0e7a59c8eb5f7fc2f12fecdc7a4 Signed-off-by: Youngjae Cho --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f1ff58..c10c059 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,9 @@ PROJECT(device-manager-rpi3 C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror") + ADD_SUBDIRECTORY(hw/display) ADD_SUBDIRECTORY(hw/led) ADD_SUBDIRECTORY(hw/touchscreen) -ADD_SUBDIRECTORY(hw/thermal) \ No newline at end of file +ADD_SUBDIRECTORY(hw/thermal) -- 2.7.4