]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: use curses dep for ncurses
authorRosen Penev <rosenp@gmail.com>
Wed, 30 Jul 2025 21:40:53 +0000 (14:40 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Jul 2025 21:40:53 +0000 (14:40 -0700)
curses is special in that it's able to find ncurses in a lot more locations that ncurses, which only looks at pkg-config and cmake. This is somewhat useful with exotic OSes like macOS.

meson.build

index a2ac71e2d3312a1fef805a532f03d258c1a1dce3..68c040442d166f29fcaf8d8688d14b7d10c0d032 100644 (file)
@@ -290,7 +290,7 @@ if lib_ncursesw.found()
   lib_ncurses = disabler()
 else
   lib_ncurses = dependency(
-    'ncurses',
+    'curses',
     disabler : true,
     required : get_option('ncurses'))
   headers += ['ncurses.h',