Skip to content

Commit 2e76e27

Browse files
dwsuseigaw
authored andcommitted
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 <[email protected]>
1 parent 5224243 commit 2e76e27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ config_dep = declare_dependency(
2020
include_directories : internal_incdir,
2121
sources: config_h)
2222

23+
config_h_path = meson.current_build_dir() / 'config.h'
24+
2325
add_project_arguments(
2426
[
25-
'-include', '@0@'.format(config_h),
27+
'-include', config_h_path,
2628
],
2729
language : 'c',
2830
)

0 commit comments

Comments
 (0)