From: Gunnar Beutner Date: Wed, 17 Dec 2014 08:07:05 +0000 (+0100) Subject: Update documentation for libreadline requirement X-Git-Tag: v2.3.0~466 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92eb6a2f45445e56f76b6e3edd7c39669f4b6b0d;p=icinga2 Update documentation for libreadline requirement fixes #8091 --- 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