1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 17:32:59 +01:00

Added detailed comments about XDP detection logic in cmake

This commit is contained in:
Pavel Odintsov 2023-04-22 21:50:46 +01:00
parent 97567a051c
commit ce92f7da29

@ -368,7 +368,8 @@ else()
endif() endif()
# It can be disabled using flag: -DENABLE_AF_XDP_SUPPORT=FALSE # We enable XDP plugin build for all platforms which support it
# It can be disabled manually using flag: -DENABLE_AF_XDP_SUPPORT=FALSE
option(ENABLE_AF_XDP_SUPPORT "Enables build for AF_XDP" ON) option(ENABLE_AF_XDP_SUPPORT "Enables build for AF_XDP" ON)
CHECK_CXX_SOURCE_COMPILES(" CHECK_CXX_SOURCE_COMPILES("
@ -382,9 +383,10 @@ int main() {
if (${ENABLE_AF_XDP_SUPPORT}) if (${ENABLE_AF_XDP_SUPPORT})
if (${HAVE_AF_XDP}) if (${HAVE_AF_XDP})
message(STATUS "Your system has support for AF_XDP") message(STATUS "Your system has support for AF_XDP and we will build XDP plugin")
else() else()
message(STATUS "Your system does not support AF_XDP, disabled it") # It may be old Linux, macOS, FreeBSD or Windows
message(STATUS "Your system does not support AF_XDP, disabling compilation of XDP plugin")
set (ENABLE_AF_XDP_SUPPORT FALSE) set (ENABLE_AF_XDP_SUPPORT FALSE)
endif() endif()