diff CMakeLists.txt @ 369:78eec57bc133

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 15 Apr 2014 09:44:54 +0200
parents d10d9bc2e84f
children 35d6b371ba63
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Apr 15 09:44:32 2014 +0200
+++ b/CMakeLists.txt	Tue Apr 15 09:44:54 2014 +0200
@@ -54,6 +54,12 @@
    set(PROFILING_LIBS gcov)
 endif()
 
+if(WIN32)
+   add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista
+   add_definitions(-DWINVER=0x0600)
+   add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions
+endif(WIN32)
+
 if(UNIX)
    set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv")
    set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now")

http://wald.intevation.org/projects/trustbridge/