From 2e76e2762d6ca4dc7523c863f5adc5eb9de78ba1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 19 Dec 2023 10:40:21 +0100 Subject: [PATCH] build: construct path to config.h manually meson reports: internal/meson.build:25: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof. Thus just hardcode the config file path by using current_build_dir. Note this changes the path from a relative one to an absolute one. Signed-off-by: Daniel Wagner --- internal/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/meson.build b/internal/meson.build index cc1e852b..744f83e0 100644 --- a/internal/meson.build +++ b/internal/meson.build @@ -20,9 +20,11 @@ config_dep = declare_dependency( include_directories : internal_incdir, sources: config_h) +config_h_path = meson.current_build_dir() / 'config.h' + add_project_arguments( [ - '-include', '@0@'.format(config_h), + '-include', config_h_path, ], language : 'c', ) -- 2.50.1