]> www.infradead.org Git - users/sagi/libnvme.git/commit
meson: Don't hard-code path to "internal/config.h"
authorMartin Belanger <martin.belanger@dell.com>
Tue, 15 Aug 2023 19:16:24 +0000 (15:16 -0400)
committerDaniel Wagner <wagi@monom.org>
Wed, 16 Aug 2023 09:16:52 +0000 (11:16 +0200)
commite1ec9bfcec8f540a32169bb7fb79ae0ee951c9ae
tree51a1986693f228201cd191289a2e3aa146b8ab2c
parent6ffad87271499e6f1d08750491a12810aa57d555
meson: Don't hard-code path to "internal/config.h"

When building libnvme as a subproject of another project
(e.g. nvme-stas), the hard-coded absolute path to config.h, i.e.
"-include internal/config.h" does not resolve properly and fails
to build. Instead, use the real path calculated by meson and
saved to variable "config_h".

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
internal/meson.build
meson.build