From 04cac14fcb9fb302c24e90b04ca4b77d3717b50c Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 15 Jun 2024 18:07:04 +0300 Subject: [PATCH] CMake: Rename CREATE_LZMA_SYMLINKS to XZ_TOOL_LZMA_SYMLINKS Update the description too. It affects creation of not only the legacy lzma, unlzma, lzcat symlinks but also lzgrep and other legacy names for the scripts. The last LZMA Utils release was made in 2008 but these names are still used in some places to handle .lzma files. --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 646b01ac..eb6585cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1935,7 +1935,8 @@ if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900) if(UNIX) option(CREATE_XZ_SYMLINKS "Create unxz and xzcat symlinks" ON) - option(CREATE_LZMA_SYMLINKS "Create lzma, unlzma, and lzcat symlinks" + option(XZ_TOOL_SYMLINKS_LZMA + "Create 'lzma' and other symlinks for LZMA Utils compatibility" ON) set(XZ_LINKS) @@ -1943,7 +1944,7 @@ if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900) list(APPEND XZ_LINKS "unxz" "xzcat") endif() - if(CREATE_LZMA_SYMLINKS) + if(XZ_TOOL_SYMLINKS_LZMA) list(APPEND XZ_LINKS "lzma" "unlzma" "lzcat") endif() @@ -1998,7 +1999,7 @@ if(UNIX) set(XZMORE_LINKS) set(XZLESS_LINKS) - if(CREATE_LZMA_SYMLINKS) + if(XZ_TOOL_SYMLINKS_LZMA) list(APPEND XZDIFF_LINKS lzdiff lzcmp) list(APPEND XZGREP_LINKS lzgrep lzegrep lzfgrep) list(APPEND XZMORE_LINKS lzmore)