comparison 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
comparison
equal deleted inserted replaced
56:016cbcb1a233 57:2cd76e6c0fcf
38 set(CMAKE_AUTOMOC ON) 38 set(CMAKE_AUTOMOC ON)
39 set(CMAKE_INCLUDE_CURRENT_DIR ON) 39 set(CMAKE_INCLUDE_CURRENT_DIR ON)
40 40
41 ### Hardening flags 41 ### Hardening flags
42 42
43 set(HARDENING_FLAGS " -Wall -s -fstack-protector-all -fno-exceptions") 43 if(NOT APPLE)
44 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") 44 set(HARDENING_FLAGS " -Wall -s -fstack-protector-all -fno-exceptions")
45 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") 45 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector")
46 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0") 46 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4")
47 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0")
48 endif(NOT APPLE)
47 49
48 if(WIN32) 50 if(WIN32)
49 add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista 51 add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista
50 add_definitions(-DWINVER=0x0600) 52 add_definitions(-DWINVER=0x0600)
51 add_definitions(-DUNICODE -D_UNICODE) 53 add_definitions(-DUNICODE -D_UNICODE)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)