added libtinfo dependency

required on aarch64 debian bookworm. While libreadline requires e.g.
tputs it does not link against libtinfo itself.
This commit is contained in:
Clemens Jonischkeit 2024-04-26 12:09:18 +02:00
parent 88246d621a
commit 81f47ed7e8

View File

@ -125,6 +125,7 @@ if(LUA_BUILD_BINARY)
if (HAVE_READLINE_READLINE_H)
target_compile_definitions(lua PRIVATE "LUA_USE_READLINE")
target_link_libraries(lua PUBLIC readline)
target_link_libraries(lua PUBLIC tinfo)
endif()
list(APPEND TARGETS_TO_INSTALL lua)
endif()