From: Jordan Williams Date: Mon, 8 Apr 2024 15:42:00 +0000 (-0500) Subject: meson: Make ncurses dependency a disabler when not found X-Git-Tag: v2.42-start~421^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d632e5dac56a61bc5acdb037b1682a3d27557242;p=thirdparty%2Futil-linux.git meson: Make ncurses dependency a disabler when not found 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 --- diff --git a/meson.build b/meson.build index 4acc53c69..835545764 100644 --- a/meson.build +++ b/meson.build @@ -261,6 +261,7 @@ if lib_ncursesw.found() else lib_ncurses = dependency( 'ncurses', + disabler : true, required : get_option('ncurses')) headers += ['ncurses.h', 'term.h']