]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Add XZ_TOOL_XZ
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 15 Jun 2024 15:07:04 +0000 (18:07 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 20 Jun 2024 18:53:07 +0000 (21:53 +0300)
CMakeLists.txt

index 542df74259fa6a6cdcf4ddecdca851f7466d4fc8..7c6d900361e4db4145ec390d67780c4b986863ba 100644 (file)
@@ -1818,7 +1818,9 @@ endif()
 # xz
 #############################################################################
 
-if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900)
+option(XZ_TOOL_XZ "Build and install the xz command line tool" ON)
+
+if(XZ_TOOL_XZ)
     add_executable(xz
         src/common/mythread.h
         src/common/sysdefs.h