link against readline only for monerod and wallet-wallet-{rpc,cli}

This commit is contained in:
moneromooo-monero 2017-10-28 19:20:21 +01:00
parent 437421ce42
commit a9e14a19dc
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 2 additions and 1 deletions

View file

@ -688,7 +688,6 @@ if(USE_READLINE)
if(READLINE_FOUND AND GNU_READLINE_FOUND) if(READLINE_FOUND AND GNU_READLINE_FOUND)
add_definitions(-DHAVE_READLINE) add_definitions(-DHAVE_READLINE)
include_directories(${Readline_INCLUDE_DIR}) include_directories(${Readline_INCLUDE_DIR})
list(APPEND EXTRA_LIBRARIES ${Readline_LIBRARY})
message(STATUS "Found readline library at: ${Readline_ROOT_DIR}") message(STATUS "Found readline library at: ${Readline_ROOT_DIR}")
else() else()
message(STATUS "Could not find GNU readline library so building without readline support") message(STATUS "Could not find GNU readline library so building without readline support")

View file

@ -102,6 +102,7 @@ target_link_libraries(daemon
${Boost_SYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY}
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
${ZMQ_LIB} ${ZMQ_LIB}
${Readline_LIBRARY}
${EXTRA_LIBRARIES}) ${EXTRA_LIBRARIES})
set_property(TARGET daemon set_property(TARGET daemon
PROPERTY PROPERTY

View file

@ -53,6 +53,7 @@ target_link_libraries(simplewallet
${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_FILESYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}
${Boost_THREAD_LIBRARY} ${Boost_THREAD_LIBRARY}
${Readline_LIBRARY}
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
${EXTRA_LIBRARIES}) ${EXTRA_LIBRARIES})
set_property(TARGET simplewallet set_property(TARGET simplewallet