Mercurial > trustbridge
comparison CMakeLists.txt @ 369:78eec57bc133
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 15 Apr 2014 09:44:54 +0200 |
parents | d10d9bc2e84f |
children | 35d6b371ba63 |
comparison
equal
deleted
inserted
replaced
368:f9c98f9e9f76 | 369:78eec57bc133 |
---|---|
52 if(ENABLE_PROFILING) | 52 if(ENABLE_PROFILING) |
53 set(PROFILING_FLAGS "-fprofile-arcs -ftest-coverage") | 53 set(PROFILING_FLAGS "-fprofile-arcs -ftest-coverage") |
54 set(PROFILING_LIBS gcov) | 54 set(PROFILING_LIBS gcov) |
55 endif() | 55 endif() |
56 | 56 |
57 if(WIN32) | |
58 add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista | |
59 add_definitions(-DWINVER=0x0600) | |
60 add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions | |
61 endif(WIN32) | |
62 | |
57 if(UNIX) | 63 if(UNIX) |
58 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv") | 64 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv") |
59 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now") | 65 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now") |
60 elseif(WIN32) | 66 elseif(WIN32) |
61 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") | 67 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") |