From: Eli Schwartz Date: Thu, 14 Apr 2022 14:55:29 +0000 (-0400) Subject: meson: pass the correct absolute path to config.h X-Git-Tag: v2.39-rc1~707^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f2c862a4aff19f5bc732e677405f04e2d07c211;p=thirdparty%2Futil-linux.git 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. --- 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 = {}