Fix build when ncurses is in nonstandard prefix

This commit is contained in:
Ryan Burns
2020-07-21 20:56:12 -07:00
committed by ridiculousfish
parent 233945b58b
commit ca4f2369d1
2 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ if(NOT ${CURSES_FOUND})
set(CURSES_CURSES_LIBRARY ${CURSES_LIBRARIES})
set(CURSES_LIBRARY ${CURSES_LIBRARIES})
endif()
# Set up extra include directories for CheckIncludeFile
list(APPEND CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS})
# Fix undefined reference to tparm on RHEL 6 and potentially others
# If curses is found via CMake, it also links against tinfo if it exists. But if we use our