summaryrefslogtreecommitdiffstats
path: root/conf.d/cmake/config.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/cmake/config.cmake')
-rw-r--r--conf.d/cmake/config.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index ee0bb05..b0c9ce6 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -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