You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
763 B

  1. From 0f03ec698e67ea3c0f21ba021c922146d5ad07b2 Mon Sep 17 00:00:00 2001
  2. From: Carlos Velasco <carlos.velasco@nimastelecom.com>
  3. Date: Thu, 4 Nov 2021 09:11:06 +0100
  4. Subject: [PATCH] CMake: Fix FindCurses.cmake try packate ncursesw if ncurses
  5. not found
  6. Change to pkg_search_module, first try to find ncurses pkg, if not found, then try with ncursesw pkg
  7. ---
  8. cmake/FindCURSES.cmake | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. --- a/cmake/FindCURSES.cmake
  11. +++ b/cmake/FindCURSES.cmake
  12. @@ -43,7 +43,7 @@ The following cache variables may also b
  13. find_package(PkgConfig QUIET)
  14. # First try for NCurses
  15. -pkg_check_modules(PC_NCurses QUIET ncurses)
  16. +pkg_search_module (PC_NCurses QUIET ncurses ncursesw)
  17. find_path(NCURSES_INCLUDE_DIR
  18. NAMES ncurses.h