]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
build: Use compiler.find_library for libhugetlbfs
authorDaniel Wagner <dwagner@suse.de>
Wed, 15 Dec 2021 13:22:02 +0000 (14:22 +0100)
committerDaniel Wagner <dwagner@suse.de>
Thu, 16 Dec 2021 08:17:22 +0000 (09:17 +0100)
commit4464968bcaeb01cf0b42373095208de46153f43b
tree131498062edef114f367e46ff9cf9cbf7dd43510
parent2acb97d4b41dcf728164fd8e442a9e148cf3422a
build: Use compiler.find_library for libhugetlbfs

libhugetlbfs is not detected via dependency() because the library
neither provides a pkg-config() nor a cmake helper. Use
compiler.find_library to figure out if the library is available.

We do not use the has_header feature of compiler.find_library()
function as this would update our minimum version for meson to
0.50.0. Instead open code it by using compiler.has_header().

Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson.build