Mercurial > trustbridge
comparison CMakeLists.txt @ 1299:05d4b2b8f22a
Add weverything for CLANG build
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 29 Sep 2014 16:29:11 +0200 |
parents | a548dd9a5dbe |
children | 8897c90b8166 |
comparison
equal
deleted
inserted
replaced
1298:9017c524e762 | 1299:05d4b2b8f22a |
---|---|
96 # Hardening flags | 96 # Hardening flags |
97 set(HARDENING_FLAGS " -Wall -fstack-protector-all -fno-exceptions") | 97 set(HARDENING_FLAGS " -Wall -fstack-protector-all -fno-exceptions") |
98 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") | 98 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") |
99 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") | 99 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") |
100 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0") | 100 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0") |
101 else() | |
102 set(HARDENING_FLAGS " -Weverything") | |
101 endif() | 103 endif() |
102 | 104 |
103 if(ENABLE_PROFILING) | 105 if(ENABLE_PROFILING) |
104 set(PROFILING_FLAGS "-fprofile-arcs -ftest-coverage") | 106 set(PROFILING_FLAGS "-fprofile-arcs -ftest-coverage") |
105 set(PROFILING_LIBS gcov) | 107 set(PROFILING_LIBS gcov) |