]> granicus.if.org Git - icinga2/commitdiff
Update documentation for libreadline requirement
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 17 Dec 2014 08:07:05 +0000 (09:07 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 17 Dec 2014 08:07:05 +0000 (09:07 +0100)
fixes #8091

INSTALL.md
lib/cli/CMakeLists.txt

index 006a5b6ad2bf9b7a9e407494bf789d0750faec16..ae0a27f0340c24f16181e8274ed2617f9797b6d5 100644 (file)
@@ -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
index 57b6ae3686d8617d4822cc8dd900797d5c9b0d06..db2a473a312e813df93ee39667f0b7f5647a0bda 100644 (file)
@@ -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