Detect libedit
Jeffrey Pfau jeffrey@endrift.com
Tue, 12 Aug 2014 21:58:48 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -75,7 +75,8 @@ # Win32 doesn't have a usable command line, nor libedit, so this is useless on Windows
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()