]> source.dussan.org Git - tigervnc.git/commitdiff
Set compiler flags early in case they influence the tests.
authorPierre Ossman <ossman@cendio.se>
Tue, 8 Mar 2011 13:12:33 +0000 (13:12 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 8 Mar 2011 13:12:33 +0000 (13:12 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4330 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index ebb86e28433c7ab1a45a4caf1d7880d2c85cf5c0..111159ea553becc271dbf69543207cc3111cf3ee 100644 (file)
@@ -73,6 +73,15 @@ if(MSVC)
   add_definitions(-wd4244 -wd4267 -wd4800 -wd4996)
 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)
+endif()
+
 if(CMAKE_SIZEOF_VOID_P MATCHES 8)
   message(STATUS "64-bit build")
 else()
@@ -141,14 +150,5 @@ configure_file(config.h.cmake.in config.h)
 add_definitions(-DHAVE_CONFIG_H)
 include_directories(${CMAKE_BINARY_DIR})
 
-# 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)
-endif()
-
 add_subdirectory(common)
 add_subdirectory(win)