From 299eb5c3f597f107fd6019bf156885ac8bfaa5ea Mon Sep 17 00:00:00 2001 From: LinkTheOperatorMatrix Date: Fri, 16 Oct 2026 00:25:12 +0300 Subject: [PATCH] CMake: Fix wrong variable name in the MicroLZMA test condition tests.cmake checked DECODERS instead of XZ_DECODERS. With XZ_MICROLZMA_DECODER=OFF, test_microlzma was incorrectly added to the list of tests, which resulted in a build failure. Closes: https://github.com/tukaani-project/xz/pull/255 --- tests/tests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.cmake b/tests/tests.cmake index 715b0c1e..5035f7b0 100644 --- a/tests/tests.cmake +++ b/tests/tests.cmake @@ -74,7 +74,7 @@ if(BUILD_TESTING) # not possible in the Autotools build, so the test was not made to # support it since it would have required additional changes. if (XZ_MICROLZMA_ENCODER AND (XZ_MICROLZMA_DECODER - OR NOT "lzma1" IN_LIST DECODERS)) + OR NOT "lzma1" IN_LIST XZ_DECODERS)) list(APPEND LIBLZMA_TESTS test_microlzma) endif()