cee304d62151da7955551220ac2f311eb009f1e6
[feed/packages.git] / net / clamav / patches / 100-cmake-fix-findcurses.patch
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
7 Change to pkg_search_module, first try to find ncurses pkg, if not found, then try with ncursesw pkg
8 ---
9 cmake/FindCURSES.cmake | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 --- a/cmake/FindCURSES.cmake
13 +++ b/cmake/FindCURSES.cmake
14 @@ -43,7 +43,7 @@ The following cache variables may also b
15
16 find_package(PkgConfig QUIET)
17 # First try for NCurses
18 -pkg_check_modules(PC_NCurses QUIET ncurses)
19 +pkg_search_module (PC_NCurses QUIET ncurses ncursesw)
20
21 find_path(NCURSES_INCLUDE_DIR
22 NAMES ncurses.h