CMake: Fix FindCurses.cmake issue when tinfo is separate library

Use all the link line from ncurses pkg-config.
Otherwise it would fail at link time if ncurses has a stand alone tinfo library.
pull/334/head
Luca Barbato 4 years ago committed by GitHub
parent d1141becac
commit 54829910d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      cmake/FindCURSES.cmake

@ -58,11 +58,7 @@ if(NCURSES_NOT_FOUND EQUAL -1)
set(HAVE_LIBNCURSES 1)
set(CURSES_INCLUDE "<ncurses.h>")
find_library(CURSES_LIBRARY
NAMES ncurses
PATHS ${PC_NCurses_LIBRARY_DIRS}
)
set(CURSES_LIBRARY ${PC_NCurses_LINK_LIBRARIES})
set(CURSES_VERSION ${PC_NCurses_VERSION})
include(FindPackageHandleStandardArgs)

Loading…
Cancel
Save