Detect libedit

This commit is contained in:
Jeffrey Pfau 2014-08-12 21:58:48 -07:00
parent 43de75c973
commit 4fe48ad820
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ if(USE_CLI_DEBUGGER AND NOT WIN32)
add_definitions(-DUSE_CLI_DEBUGGER)
list(APPEND DEBUGGER_SRC "${CMAKE_SOURCE_DIR}/src/debugger/cli-debugger.c")
list(APPEND DEBUGGER_SRC "${CMAKE_SOURCE_DIR}/src/debugger/parser.c")
set(DEBUGGER_LIB "edit")
pkg_search_module(EDIT libedit REQUIRED)
set(DEBUGGER_LIB ${EDIT_LIBRARIES})
else()
set(DEBUGGER_LIB "")
endif()