From adaacafde6661496ca2814b1e94a3ba5186428cb Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Fri, 23 Feb 2024 20:57:59 +0800 Subject: Build: Define HAVE_MICROLZMA when it is configured. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 06282b4d..4924f436 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -819,6 +819,10 @@ if(MICROLZMA_DECODER) target_sources(liblzma PRIVATE src/liblzma/common/microlzma_decoder.c) endif() +if (MICROLZMA_ENCODER OR MICROLZMA_DECODER) + add_compile_definitions(HAVE_MICROLZMA) +endif() + ############################# # lzip (.lz) format support # -- cgit v1.2.3