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'}
This commit is contained in:
Jelle van der Waa 2024-03-11 14:53:53 +01:00
parent d8c22cf085
commit 3e808424b3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'))