Mercurial > retraceit
diff CMakeLists.txt @ 57:2cd76e6c0fcf
Add MacOS build support
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 19 May 2015 15:36:00 +0200 |
parents | 0c05958d254c |
children | 098a10fc2e83 |
line wrap: on
line diff
--- a/CMakeLists.txt Tue May 19 11:12:22 2015 +0200 +++ b/CMakeLists.txt Tue May 19 15:36:00 2015 +0200 @@ -40,10 +40,12 @@ ### Hardening flags -set(HARDENING_FLAGS " -Wall -s -fstack-protector-all -fno-exceptions") -set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") -set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") -set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0") +if(NOT APPLE) + set(HARDENING_FLAGS " -Wall -s -fstack-protector-all -fno-exceptions") + set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") + set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") + set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0") +endif(NOT APPLE) if(WIN32) add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista