summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/create-cmake-release.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-03-16 20:42:39 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-17 13:32:16 (GMT)
commite903a9fc55a1a8d1e6cc681f8d2e98bb74566ec8 (patch)
tree8cc61086edf0ae8111638757f78dda82ac851951 /Utilities/Release/create-cmake-release.cmake
parentdd630075448f6aa45c0e51444365feb73701ebbd (diff)
downloadCMake-e903a9fc55a1a8d1e6cc681f8d2e98bb74566ec8.zip
CMake-e903a9fc55a1a8d1e6cc681f8d2e98bb74566ec8.tar.gz
CMake-e903a9fc55a1a8d1e6cc681f8d2e98bb74566ec8.tar.bz2
Utilities/Release: Create a Windows 64-bit binary
Compile with `-D_WIN32_WINNT=0x502` to use a WinXP-compatible API. Compile with `-D_USING_V110_SDK71_` to tell the VS standard library headers that we are building with a WinXP-compatible Windows SDK. Link executables with `-subsystem:console,5.02` to make them runnable on Windows XP 64-bit. Ideally `cmake-gui` should instead be linked with `-subsystem:windows,5.02` but with the Ninja and Makefile generators CMake adds `-subsystem:windows` after our `-subsystem:console,5.02` flag and the linker seems to interpret this combination as we need.
Diffstat (limited to 'Utilities/Release/create-cmake-release.cmake')
-rw-r--r--Utilities/Release/create-cmake-release.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/Release/create-cmake-release.cmake b/Utilities/Release/create-cmake-release.cmake
index f440519..f8844e9 100644
--- a/Utilities/Release/create-cmake-release.cmake
+++ b/Utilities/Release/create-cmake-release.cmake
@@ -14,6 +14,7 @@ set(RELEASE_SCRIPTS_BATCH_1
set(RELEASE_SCRIPTS_BATCH_2
cygwin_release.cmake # Cygwin x86
+ win64_release.cmake # Windows x64
)
function(write_batch_shell_script filename)