diff options
author | Jelle van der Waa <jvanderwaa@redhat.com> | 2024-03-11 14:53:53 +0100 |
---|---|---|
committer | Jelle van der Waa <jvanderwaa@redhat.com> | 2024-03-11 14:53:53 +0100 |
commit | 3e808424b3f2788e942e03208a20faab87d48511 (patch) | |
tree | 269a36da4ba28437177108a1e5b0a0c19604f9d3 | |
parent | d8c22cf085eab29b29ee3e1b0d482980780a90a8 (diff) |
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'}
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | 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')) |