dependency/misc: change lookup order for curses pkg-config

look for (in order): ncursesw, ncurses, curses.
pull/7757/head
Dylan Baker 4 years ago
parent 16d3513df6
commit 354c1c1d09
  1. 2
      mesonbuild/dependencies/misc.py

@ -410,7 +410,7 @@ def curses_factory(env: 'Environment', for_machine: 'MachineChoice',
candidates = [] # type: T.List[T.Callable[[], Dependency]]
if DependencyMethods.PKGCONFIG in methods:
pkgconfig_files = ['ncurses', 'ncursesw']
pkgconfig_files = ['ncursesw', 'ncurses', 'curses']
for pkg in pkgconfig_files:
candidates.append(functools.partial(PkgConfigDependency, pkg, env, kwargs))

Loading…
Cancel
Save