]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: construct path to config.h manually
authorDaniel Wagner <dwagner@suse.de>
Tue, 19 Dec 2023 09:40:21 +0000 (10:40 +0100)
committerDaniel Wagner <wagi@monom.org>
Tue, 19 Dec 2023 10:05:19 +0000 (11:05 +0100)
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 <dwagner@suse.de>
internal/meson.build

index cc1e852ba473bb46838ab8053b434df0e7e2dc0a..744f83e0ad66abea1526a4b7d7819fb3d264f5e9 100644 (file)
@@ -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',
 )