]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Require VS2015 or later for building xzdec.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 21 Sep 2023 16:17:40 +0000 (19:17 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 22 Sep 2023 17:10:10 +0000 (20:10 +0300)
xzdec might build with VS2013 but it hasn't been tested.
It was never supported before and VS2013 is old anyway
so for simplicity only liblzma is supported with VS2013.

CMakeLists.txt

index d2fe35df0157b7a1f0731ff583e84c19984634fb..13ff7b1cd1a7744d8946658c71315978353c7278 100644 (file)
@@ -1035,7 +1035,7 @@ endif()
 # xzdec
 #############################################################################
 
-if(HAVE_DECODERS)
+if(HAVE_DECODERS AND (NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900))
     add_executable(xzdec
         src/common/sysdefs.h
         src/common/tuklib_common.h