From 278b493541fe59bbad31ab39b0b74f1f6a5396ec Mon Sep 17 00:00:00 2001 From: Ingo Date: Mon, 30 Dec 2013 00:43:45 +0100 Subject: [PATCH] Set lowest supported Win32 version to WinXP (was Win9x before), Issue 2159 comment 22 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6799d7dcd..dcf93e03c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,7 +207,9 @@ if (WIN32) if (MINGW) add_definitions (-D__MINGW32__) endif (MINGW) - + if (CMAKE_SIZEOF_VOID_P EQUAL 4) + add_definitions (-DWINVER=0x0501) + endif (CMAKE_SIZEOF_VOID_P EQUAL 4) set (EXTRA_LIB "-lws2_32 -lshlwapi") endif (WIN32) # you may need lcms v1.xx for older version : pkg_check_modules (LCMS REQUIRED lcms<=1.99)