Skip to content

Commit

Permalink
Fix linking for readline, ncurses. Remove unused
Browse files Browse the repository at this point in the history
- Remove leftovers from MiniUPnP and Unbound.
- Add termcap listing info for ncurses (fixes static linking on mac)
  • Loading branch information
who-biz committed Jul 3, 2019
1 parent b8dadd2 commit 10832b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 124 deletions.
25 changes: 0 additions & 25 deletions cmake/FindBerkeleyDB.cmake

This file was deleted.

59 changes: 0 additions & 59 deletions cmake/FindMiniupnpc.cmake

This file was deleted.

8 changes: 8 additions & 0 deletions cmake/FindReadline.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ find_path(Readline_ROOT_DIR
NO_DEFAULT_PATH
)

find_path(Termcap_ROOT_DIR
NAMES include/curses.h
PATHS /usr/local/ /usr/ /opt/local/ /usr/local/opt/ncurses/
NO_DEFAULT_PATH
)

find_path(Readline_INCLUDE_DIR
NAMES readline/readline.h
PATHS ${Readline_ROOT_DIR}/include
Expand All @@ -41,6 +47,8 @@ find_library(Readline_LIBRARY

find_library(Termcap_LIBRARY
NAMES tinfo termcap ncursesw ncurses cursesw curses
PATHS ${Termcap_ROOT_DIR}/lib
NO_DEFAULT_PATH
)

if(Readline_INCLUDE_DIR AND Readline_LIBRARY)
Expand Down
40 changes: 0 additions & 40 deletions cmake/FindUnbound.cmake

This file was deleted.

0 comments on commit 10832b8

Please sign in to comment.