]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Rename CREATE_LZMA_SYMLINKS to XZ_TOOL_LZMA_SYMLINKS
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 12:00:05 +0000 (15:00 +0300)
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

index 646b01ac8c51a6369dfa7e6b180b6a8988b9c2dd..eb6585cfdcf3740c0400d7da28e5120087afd9b1 100644 (file)
@@ -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)