From 5600e370fb7e11eafabc6c3ef5bf6510e859f4f0 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 15 Jun 2024 18:07:04 +0300 Subject: [PATCH] CMake: Add XZ_TOOL_XZ --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 542df742..7c6d9003 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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