From 5f2c862a4aff19f5bc732e677405f04e2d07c211 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 14 Apr 2022 10:55:29 -0400 Subject: [PATCH] meson: pass the correct absolute path to config.h When building util-linux as a subproject inside another project (using dependency fallback to get e.g. libuuid), `-include config.h` will not work because it is generated private to util-linux. Build the project argument using the path to the current build dir instead. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9c8db310ed..2f6a7a47a9 100644 --- a/meson.build +++ b/meson.build @@ -750,7 +750,7 @@ config_h = configure_file( output : 'config.h', configuration : conf) -add_project_arguments('-include', 'config.h', language : 'c') +add_project_arguments('-include', meson.current_build_dir() / 'config.h', language : 'c') manadocs = [] manlinks = {} -- 2.47.3