From 610b5d804c195d7de3c978da39d5069a5185bc36 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 13 Feb 2023 17:27:56 +0200 Subject: [PATCH 38/38] Meson: Fix build without lzma Reported by lachu See osdn #47338 Signed-off-by: Marko Lindqvist --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index afc589cd8e..32f485eecc 100644 --- a/meson.build +++ b/meson.build @@ -435,8 +435,10 @@ if c_compiler.has_header('lzma.h', args: header_arg) required:false) if lzma_dep.found() - pub_conf_data.set('FREECIV_HAVE_LIBLZMA', 1) + pub_conf_data.set('FREECIV_HAVE_LIBLZMA', 1) endif +else + lzma_dep = [] endif zstd_dep = c_compiler.find_library('zstd', dirs: cross_lib_path, -- 2.39.1