From 95857257ad1b2d36489c7410bfc8de2b5f3cc50a Mon Sep 17 00:00:00 2001 From: Matt Jolly Date: Sun, 11 Jun 2023 17:21:05 +1000 Subject: [PATCH 19/19] Meson: Find system-lua in multiple places Lua doesn't have a default pkg-config (etc) and distros are fragmented. Look for it in any of its multitude of hiding places. Bump meson version so that this doesn't require a ton of boilerplate Modified by Marko Lindqvist See osdn #48234 --- doc/INSTALL.meson | 2 +- meson.build | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/INSTALL.meson b/doc/INSTALL.meson index a05d68797a..d674eb37fc 100644 --- a/doc/INSTALL.meson +++ b/doc/INSTALL.meson @@ -16,7 +16,7 @@ of the build system itself. Meson build does not need autotools, nor does autotools build need meson. See main (autotools) INSTALL file for the common prerequisites. -For the meson based build minimum version of meson is 0.57.0. +For the meson based build minimum version of meson is 0.60.0. Overview: diff --git a/meson.build b/meson.build index 1126e2d0ec..eab378bd4a 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ -project('freeciv', ['c', 'cpp'], meson_version: '>= 0.57.0') +project('freeciv', ['c', 'cpp'], meson_version: '>= 0.60.0') c_compiler = meson.get_compiler('c') cxx_compiler = meson.get_compiler('cpp') @@ -530,7 +530,7 @@ else endif icu_dep = dependency('icu-uc') syslua = get_option('syslua') - lua_dep_tmp = dependency('lua-5.4', required:false) + lua_dep_tmp = dependency('lua-5.4', 'lua-54', 'lua54', 'lua5.4', required:false) endif # Set unconditionally, as it was checked as hard requirement -- 2.40.1