From 92eb6a2f45445e56f76b6e3edd7c39669f4b6b0d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 17 Dec 2014 09:07:05 +0100 Subject: [PATCH] Update documentation for libreadline requirement fixes #8091 --- INSTALL.md | 1 + lib/cli/CMakeLists.txt | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 006a5b6ad..ae0a27f03 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -27,6 +27,7 @@ parentheses): * GNU flex (flex) >= 2.5.35 * recommended: libexecinfo on FreeBSD (automatically used when Icinga 2 is installed via port or package) +* recommended: GNU readline (readline-devel on RHEL, libreadline-dev on Debian) * optional: MySQL (mysql-devel on RHEL, libmysqlclient-dev on Debian); set CMake variable `ICINGA2_WITH_MYSQL` to disable this module * optional: PostgreSQL (postgresql-devel on RHEL, libpq-dev on Debian); set CMake diff --git a/lib/cli/CMakeLists.txt b/lib/cli/CMakeLists.txt index 57b6ae368..db2a473a3 100644 --- a/lib/cli/CMakeLists.txt +++ b/lib/cli/CMakeLists.txt @@ -35,7 +35,11 @@ endif() add_library(cli SHARED ${cli_SOURCES}) -target_link_libraries(cli ${Boost_LIBRARIES} readline base config remote) +target_link_libraries(cli ${Boost_LIBRARIES} base config remote) + +if(HAVE_LIBREADLINE) + target_link_libraries(cli readline) +endif() set_target_properties ( cli PROPERTIES -- 2.40.0