all repos — mgba @ 4fe48ad820afd0150b138b6495cc31c269e4ada9

mGBA Game Boy Advance Emulator

Detect libedit
Jeffrey Pfau jeffrey@endrift.com
Tue, 12 Aug 2014 21:58:48 -0700
commit

4fe48ad820afd0150b138b6495cc31c269e4ada9

parent

43de75c973bb314e45556d87fa528b1505754910

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.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()