diff options
author | Andres Mejia <amejia004@gmail.com> | 2013-02-05 19:04:37 -0500 |
---|---|---|
committer | Andres Mejia <amejia004@gmail.com> | 2013-02-05 19:04:37 -0500 |
commit | 5adb430072bbdec909b7a78bffeaa950eb73f55c (patch) | |
tree | ed19f9f47a1ab4b6c3112db45f7640a918461b30 | |
parent | da738640d28b3bccec05a97eb07cc32ef254d519 (diff) | |
download | libarchive-5adb430072bbdec909b7a78bffeaa950eb73f55c.tar.gz |
Set WINVER default to use Windows 2000 API.
-rw-r--r-- | CMakeLists.txt | 7 |
1 files 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) |