From ef17163f54df70f50828259019335fb4904a8822 Mon Sep 17 00:00:00 2001 From: ressac Date: Tue, 20 Mar 2012 14:38:32 +0100 Subject: [PATCH] Lua : detect and use termcap if curses not found. This is the same patch that 4682c536895ea3456eb53563ffcab7303910fc2c applied to the lua CMakeLists.txt. --- lua/CMakeLists.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt index 71b6948..6fc7676 100644 --- a/lua/CMakeLists.txt +++ b/lua/CMakeLists.txt @@ -18,7 +18,7 @@ if(BUILD_LUA_RTT) include_directories(${LUA_INCLUDE_DIR}) add_library(lua-repl STATIC lua-repl.c) - target_link_libraries(lua-repl "ncurses" "readline" "dl" "history" ${LUA_LIBRARIES}) + target_link_libraries(lua-repl "readline" ${CURSES_IMPL} "dl" "history" ${LUA_LIBRARIES}) set_target_properties(lua-repl PROPERTIES COMPILE_FLAGS "-DOROCOS_TARGET=${OROCOS_TARGET}") orocos_component(orocos-ocl-lua rtt.cpp LuaComponent.cpp ) @@ -47,7 +47,7 @@ if(BUILD_LUA_RTT) orocos_component(orocos-ocl-lua-tlsf rtt.cpp LuaComponent.cpp ) orocos_executable(rttlua-tlsf rtt.cpp LuaComponent.cpp) add_library(lua-repl-tlsf STATIC lua-repl.c) - target_link_libraries(lua-repl-tlsf "ncurses" "readline" "dl" "history" ${LUA_LIBRARIES}) + target_link_libraries(lua-repl-tlsf "readline" ${CURSES_IMPL} "dl" "history" ${LUA_LIBRARIES}) set_target_properties(lua-repl-tlsf PROPERTIES COMPILE_FLAGS "-DOROCOS_TARGET=${OROCOS_TARGET} -DLUA_RTT_TLSF ${LUA_REPL_FLAGS}") add_library(tlsf_rtt STATIC tlsf.c tlsf_rtt.c) -- 1.7.0.4