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

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

index 4acc53c69aabf78799f005a9570d70c25b508224..835545764993e5d30ed0b7ea281817d835e30448 100644 (file)
@@ -261,6 +261,7 @@ if lib_ncursesw.found()
 else
   lib_ncurses = dependency(
     'ncurses',
+    disabler : true,
     required : get_option('ncurses'))
   headers += ['ncurses.h',
               'term.h']