CMake: Add XZ_TOOL_XZ

This commit is contained in:
Lasse Collin 2024-06-15 18:07:04 +03:00
parent 6a3c4aaa43
commit 5600e370fb
1 changed files with 3 additions and 1 deletions

View 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