1
0
mirror of https://git.tukaani.org/xz.git synced 2026-10-31 03:14:56 +00:00

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
This commit is contained in:
LinkTheOperatorMatrix 2026-10-16 00:25:12 +03:00 committed by Lasse Collin
parent 49b372b938
commit 299eb5c3f5
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -74,7 +74,7 @@ if(BUILD_TESTING)
# not possible in the Autotools build, so the test was not made to # not possible in the Autotools build, so the test was not made to
# support it since it would have required additional changes. # support it since it would have required additional changes.
if (XZ_MICROLZMA_ENCODER AND (XZ_MICROLZMA_DECODER 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) list(APPEND LIBLZMA_TESTS test_microlzma)
endif() endif()