diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-06-22 05:46:53 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-06-22 05:46:53 +0000 |
commit | 2301beb51111bbf5b99b50485e5c505153d35a1f (patch) | |
tree | c22c1979ffe28108eac2f19e79828d8094f9075c /CMakeLists.txt | |
parent | eae60994429d686576d87aff7a1ec155bddbd7db (diff) | |
download | tigervnc-2301beb51111bbf5b99b50485e5c505153d35a1f.tar.gz tigervnc-2301beb51111bbf5b99b50485e5c505153d35a1f.zip |
Don't define _WIN32_IE or _WIN32_WINNT except on Windows builds
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4516 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fb4e7135..95153a79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |