Fix libedit in CMakeLists
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Oct 2014 03:49:48 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -107,7 +107,9 @@ if(USE_CLI_DEBUGGER)
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_LIBRARIES}) + include_directories(AFTER ${LIBEDIT_INCLUDE_DIRS}) + link_directories(${LIBEDIT_LIBRARY_DIRS}) + set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES}) else() set(DEBUGGER_LIB "") endif()