]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Make tinfo dependency a disabler when not found
authorJordan Williams <jordan@jwillikers.com>
Mon, 8 Apr 2024 15:28:02 +0000 (10:28 -0500)
committerJordan Williams <jordan@jwillikers.com>
Wed, 10 Apr 2024 12:13:14 +0000 (07:13 -0500)
This disables targets that require tinfo when it is not found.
Currently, targets requiring tinfo are built when it is not found.
Fixes #2927.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
meson.build

index 21822f0bd426ea0e863edaf74d5077a09fcd385d..4acc53c69aabf78799f005a9570d70c25b508224 100644 (file)
@@ -246,6 +246,7 @@ lib_m = cc.find_library('m')
 
 lib_tinfo = dependency(
   'tinfo',
+  disabler : true,
   required : get_option('tinfo'))
 
 lib_ncursesw = dependency(