changeset 782:2d188a3e8802

Core: disable epoll backend by default See: https://github.com/boostorg/asio/issues/150
author David Demelier <markand@malikania.fr>
date Mon, 05 Nov 2018 13:46:33 +0100
parents baf9258e9cbb
children d0bd19183743
files libirccd-core/CMakeLists.txt
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libirccd-core/CMakeLists.txt	Sun Nov 04 18:44:37 2018 +0100
+++ b/libirccd-core/CMakeLists.txt	Mon Nov 05 13:46:33 2018 +0100
@@ -58,6 +58,12 @@
 
 if (CMAKE_SYSTEM_NAME MATCHES Windows)
 	list(APPEND LIBRARIES mswsock shlwapi ws2_32)
+elseif (CMAKE_SYSTEM_NAME MATCHES "Linux")
+	#
+	# Disable epoll in boost until it get fixed:
+	# https://github.com/boostorg/asio/issues/150
+	#
+	list(APPEND FLAGS "BOOST_ASIO_DISABLE_EPOLL")
 elseif (APPLE)
 	list(APPEND LIBRARIES resolv)
 endif ()
@@ -69,6 +75,7 @@
 irccd_define_library(
 	TARGET libirccd-core
 	EXPORT
+	FLAGS ${FLAGS}
 	HEADERS ${HEADERS}
 	HEADERS_DIRECTORY irccd
 	SOURCES ${SOURCES}