* 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
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