summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-03 13:09:19 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-03 13:09:19 (GMT)
commitfa425910b7932ff8c716ae6c2dfe67f79488e4e7 (patch)
treede8a8e41d67f2aeacbba3a74e91c7f8e4a022144 /Utilities/Release
parente9bc469b2abcd0ad4cb3ad4bfefbc5ef1f559c1b (diff)
downloadCMake-fa425910b7932ff8c716ae6c2dfe67f79488e4e7.zip
CMake-fa425910b7932ff8c716ae6c2dfe67f79488e4e7.tar.gz
CMake-fa425910b7932ff8c716ae6c2dfe67f79488e4e7.tar.bz2
Utilities/Release: Define NTDDI_VERSION for Windows binaries
LibArchive now defines this explicitly if it is not defined already. Since we define _WIN32_WINNT explicitly, we must now define a consistent value of NTDDI_VERSION explicitly too.
Diffstat (limited to 'Utilities/Release')
-rw-r--r--Utilities/Release/win32_release.cmake2
-rw-r--r--Utilities/Release/win64_release.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/Release/win32_release.cmake b/Utilities/Release/win32_release.cmake
index 1d3ec86..ba83b26 100644
--- a/Utilities/Release/win32_release.cmake
+++ b/Utilities/Release/win32_release.cmake
@@ -19,7 +19,7 @@ CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:BOOL=TRUE
CMake_INSTALL_DEPENDENCIES:BOOL=ON
CMAKE_EXE_LINKER_FLAGS:STRING=-machine:x86 -subsystem:console,5.01
")
-set(ppflags "-D_WIN32_WINNT=0x501 -D_USING_V110_SDK71_")
+set(ppflags "-D_WIN32_WINNT=0x501 -DNTDDI_VERSION=0x05010000 -D_USING_V110_SDK71_")
set(CFLAGS "${ppflags}")
set(CXXFLAGS "${ppflags}")
set(ENV ". ~/rel/env")
diff --git a/Utilities/Release/win64_release.cmake b/Utilities/Release/win64_release.cmake
index b2d4ad1..8e207b5 100644
--- a/Utilities/Release/win64_release.cmake
+++ b/Utilities/Release/win64_release.cmake
@@ -20,7 +20,7 @@ CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL:BOOL=TRUE
CMake_INSTALL_DEPENDENCIES:BOOL=ON
CMAKE_EXE_LINKER_FLAGS:STRING=-machine:x64 -subsystem:console,5.02
")
-set(ppflags "-D_WIN32_WINNT=0x502 -D_USING_V110_SDK71_")
+set(ppflags "-D_WIN32_WINNT=0x502 -DNTDDI_VERSION=0x05020000 -D_USING_V110_SDK71_")
set(CFLAGS "${ppflags}")
set(CXXFLAGS "${ppflags}")
set(ENV ". ~/rel/env64")