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:
parent
49b372b938
commit
299eb5c3f5
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user