summaryrefslogtreecommitdiffstats
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authornick black <dankamongmen@gmail.com>2019-10-26 02:18:10 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-28 16:03:11 (GMT)
commit84ce47325565b5f1df10fa00f5873a98c6019678 (patch)
tree50461895966a2fb974910f0697edcfd6ec2b43b9 /Modules/FindCurses.cmake
parent92780281c2e8a46223b262b152caa9c8329373b1 (diff)
downloadCMake-84ce47325565b5f1df10fa00f5873a98c6019678.zip
CMake-84ce47325565b5f1df10fa00f5873a98c6019678.tar.gz
CMake-84ce47325565b5f1df10fa00f5873a98c6019678.tar.bz2
FindCurses: use formw when wide support is requested
Fixes: #19883
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r--Modules/FindCurses.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake
index ad40522..e3e7273 100644
--- a/Modules/FindCurses.cmake
+++ b/Modules/FindCurses.cmake
@@ -51,9 +51,11 @@ include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
# may be ncursesw
if(NOT CURSES_NEED_WIDE)
set(NCURSES_LIBRARY_NAME "ncurses")
+ set(CURSES_FORM_LIBRARY_NAME "form")
else()
set(NCURSES_LIBRARY_NAME "ncursesw")
- # Also, if we are searchig fo wide curses - we are actually searching
+ set(CURSES_FORM_LIBRARY_NAME "formw")
+ # Also, if we are searching for wide curses - we are actually searching
# for ncurses, we don't know about any other unicode version.
set(CURSES_NEED_NCURSES TRUE)
endif()
@@ -223,8 +225,8 @@ if(NOT CURSES_NEED_WIDE)
endif()
endif()
-find_library(CURSES_FORM_LIBRARY form HINTS "${_cursesLibDir}")
-find_library(CURSES_FORM_LIBRARY form )
+find_library(CURSES_FORM_LIBRARY "${CURSES_FORM_LIBRARY_NAME}" HINTS "${_cursesLibDir}")
+find_library(CURSES_FORM_LIBRARY "${CURSES_FORM_LIBRARY_NAME}" )
# Previous versions of FindCurses provided these values.
if(NOT DEFINED FORM_LIBRARY)