]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Set WINVER default to use Windows 2000 API.
authorAndres Mejia <amejia004@gmail.com>
Wed, 6 Feb 2013 00:04:37 +0000 (19:04 -0500)
committerAndres Mejia <amejia004@gmail.com>
Wed, 6 Feb 2013 00:04:37 +0000 (19:04 -0500)
CMakeLists.txt

index af77e139219ace566a89d5ad6d2f8d02096cc971..2cdb9fb4858566341fd845b3d0cb2a81916f70e7 100644 (file)
@@ -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)