aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-10-04 15:21:55 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-10-05 12:32:45 +0200
commit73b8c378f2bbfe1f59c3bfac3479f351063194a7 (patch)
tree39ca9ed6a87ab6040a8e9175f702f0eb509be367 /CMakeLists.txt
parenta0e0611c56e9bd291e3ae7f534ab279fc9143369 (diff)
nDPId event I/O fixes.
* forcibly disable epoll even if available * nDPId-test event I/O selftest * CI event I/O tests Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3f62cb53..d74bf83b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,8 +35,11 @@ include(CheckEpoll)
check_epoll(HAS_EPOLL)
if(HAS_EPOLL)
- set(EPOLL_DEFS "-DENABLE_EPOLL=1")
- set(EPOLL_SRCS "nio.c")
+ option(FORCE_POLL "Force the use of poll() instead of epoll()." OFF)
+ if(NOT FORCE_POLL)
+ set(EPOLL_DEFS "-DENABLE_EPOLL=1")
+ set(EPOLL_SRCS "nio.c")
+ endif()
endif()
if(NOT MATH_FUNCTION_EXISTS AND NOT NEED_LINKING_AGAINST_LIBM)
@@ -416,6 +419,7 @@ message(STATUS "Cross Compilation........: ${CMAKE_CROSSCOMPILING}")
message(STATUS "CMAKE_BUILD_TYPE.........: ${CMAKE_BUILD_TYPE}")
message(STATUS "CMAKE_C_FLAGS............: ${CMAKE_C_FLAGS}")
message(STATUS "NDPID_DEFS...............: ${NDPID_DEFS}")
+message(STATUS "FORCE_POLL...............: ${FORCE_POLL}")
message(STATUS "ENABLE_COVERAGE..........: ${ENABLE_COVERAGE}")
message(STATUS "ENABLE_SANITIZER.........: ${ENABLE_SANITIZER}")
message(STATUS "ENABLE_SANITIZER_THREAD..: ${ENABLE_SANITIZER_THREAD}")