]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: pass the correct absolute path to config.h
authorEli Schwartz <eschwartz@archlinux.org>
Thu, 14 Apr 2022 14:55:29 +0000 (10:55 -0400)
committerEli Schwartz <eschwartz@archlinux.org>
Thu, 14 Apr 2022 14:55:29 +0000 (10:55 -0400)
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

index 9c8db310ed802f7af78b07cee91fc3740043c1b9..2f6a7a47a96c190385c76bf3209aa41dd32f6973 100644 (file)
@@ -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 = {}