]> source.dussan.org Git - tigervnc.git/commitdiff
Don't define _WIN32_IE or _WIN32_WINNT except on Windows builds
authorDRC <dcommander@users.sourceforge.net>
Wed, 22 Jun 2011 05:46:53 +0000 (05:46 +0000)
committerDRC <dcommander@users.sourceforge.net>
Wed, 22 Jun 2011 05:46:53 +0000 (05:46 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4516 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index fb4e7135f2eb0f1d7e0d728277a92b61a9ec41f3..95153a799356c427d6a95cb2aad597c9299ee9e0 100644 (file)
@@ -89,12 +89,14 @@ if(MSVC)
 endif()
 
 # Minimum version is Windows 2000 (5.0)
-if(NOT CMAKE_SIZEOF_VOID_P MATCHES 8)
-  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)
+if(WIN32)
+  if(NOT CMAKE_SIZEOF_VOID_P MATCHES 8)
+    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()
 endif()
 
 if(CMAKE_SIZEOF_VOID_P MATCHES 8)