]> source.dussan.org Git - tigervnc.git/commitdiff
The Win64 headers don't like us requesting Windows 2000 as the minimum version
authorPierre Ossman <ossman@cendio.se>
Fri, 4 Mar 2011 14:41:14 +0000 (14:41 +0000)
committerPierre Ossman <ossman@cendio.se>
Fri, 4 Mar 2011 14:41:14 +0000 (14:41 +0000)
as that version did not have 64-bit support.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4323 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index 15b1d5ccd121cdfbc1f985398994dd5fe798cf3e..0b40ed49f47e265fa998d7c7c85c1eaac8967c7f 100644 (file)
@@ -138,7 +138,14 @@ configure_file(config.h.cmake.in config.h)
 add_definitions(-DHAVE_CONFIG_H)
 include_directories(${CMAKE_BINARY_DIR})
 
-add_definitions(-D_WIN32_IE=0x0500 -D_WIN32_WINNT=0x0500)
+# Minimum version is Windows 2000 (5.0)
+if(NOT CMAKE_CL_64)
+  add_definitions(-D_WIN32_IE=0x0500 -D_WIN32_WINNT=0x0500)
+else()
+  # Win64 doesn't like us requesting a Windows version that didn't have
+  # 64-bit support. Request XP (5.1) instead.
+  add_definitions(-D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501)
+endif()
 
 add_subdirectory(common)
 add_subdirectory(win)