From 3e808424b3f2788e942e03208a20faab87d48511 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 11 Mar 2024 14:53:53 +0100 Subject: [PATCH] build: use install_emptydir for installing the history dir This resolves the following deprecation warning, meson these days has a special function for installing an empty directory: * 0.60.0: {'install_subdir with empty directory'} --- meson.build | 2 +- src/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index f65b817..1528611 100644 --- a/meson.build +++ b/meson.build @@ -6,7 +6,7 @@ project('upower', 'c', 'warning_level=1', 'c_std=gnu99', ], - meson_version: '>= 0.56.0') + meson_version: '>= 0.60.0') soversion = 3 current = 1 diff --git a/src/meson.build b/src/meson.build index a2352ac..f072328 100644 --- a/src/meson.build +++ b/src/meson.build @@ -81,7 +81,7 @@ up_self_test = executable('up_self_test', # Data/Config files ############# -install_subdir('does-not-exist', install_dir: historydir, strip_directory : true) +install_emptydir(historydir) cdata = configuration_data() cdata.set('libexecdir', get_option('prefix') / get_option('libexecdir'))