From 5adb430072bbdec909b7a78bffeaa950eb73f55c Mon Sep 17 00:00:00 2001 From: Andres Mejia Date: Tue, 5 Feb 2013 19:04:37 -0500 Subject: Set WINVER default to use Windows 2000 API. --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af77e139..2cdb9fb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,7 +153,7 @@ OPTION(ENABLE_ICONV "Enable iconv support" ON) OPTION(ENABLE_TEST "Enable unit and regression tests" ON) SET(POSIX_REGEX_LIB "AUTO" CACHE STRING "Choose what library should provide POSIX regular expression support") SET(ENABLE_SAFESEH "AUTO" CACHE STRING "Enable use of /SAFESEH linker flag (MSVC only)") -SET(WINDOWS_VERSION "WINXP" CACHE STRING "Set Windows version to use (Windows only)") +SET(WINDOWS_VERSION "" CACHE STRING "Set Windows version to use (Windows only)") IF(ENABLE_TEST) ENABLE_TESTING() @@ -170,8 +170,11 @@ IF(WIN32) SET(WINVER 0x0600) ELSEIF(WINDOWS_VERSION STREQUAL "WS03") SET(WINVER 0x0502) - ELSE(WINDOWS_VERSION STREQUAL "WIN8") + ELSEIF(WINDOWS_VERSION STREQUAL "WINXP") SET(WINVER 0x0501) + ELSE(WINDOWS_VERSION STREQUAL "WIN8") + # The default is to use Windows 2000 API. + SET(WINVER 0x0500) ENDIF(WINDOWS_VERSION STREQUAL "WIN8") SET(_WIN32_WINNT ${WINVER}) ENDIF(WIN32) -- cgit v1.2.1