CMake, no pkg-config: Also support finding ncursesw

Like the commit to support ncursesW using pkg-config, this commit
extends that to the non-pkg-config scenario.
This commit is contained in:
Micah Snyder
2022-02-18 15:06:57 -08:00
committed by Micah Snyder
parent d4a5f9f77e
commit 9035ef10af

View File

@@ -62,7 +62,7 @@ if(NCURSES_NOT_FOUND EQUAL -1)
set(CURSES_LIBRARY ${PC_NCurses_LINK_LIBRARIES})
else()
find_library(CURSES_LIBRARY
NAMES ncurses
NAMES ncurses ncursesw
PATHS ${PC_NCurses_LIBRARY_DIRS}
)
endif()