conf.d/cmake/config.cmake: Fail on warnings
[apps/agl-service-homescreen.git] / conf.d / cmake / config.cmake
index ee0bb05..b0c9ce6 100644 (file)
@@ -87,6 +87,16 @@ list (APPEND link_libraries -pthread)
 # Either separate options with ";", or each options must be quoted separately
 # DO NOT PUT ALL OPTION QUOTED AT ONCE , COMPILATION COULD FAILED !
 # ----------------------------------------------------------------------------
+set(COMPILE_OPTIONS
+ -Wall
+ -Wextra
+ -Werror
+ -Wno-cpp
+ -Wno-missing-field-initializers
+ -fstack-protector-all
+ -Wl,-z,relro,-z,now
+ CACHE STRING "Compilation flags"
+)
 #set(COMPILE_OPTIONS
 # -Wall
 # -Wextra