zeek/src/iosource/CMakeLists.txt
Arne Welzel 4e20a484ea iosource: Specify libkqueue dependency for subdir lib
Since a while my build has been spilling the following warnings:

    [18/1687] Building C object auxil/c-ares/src/lib/CMakeFiles/c-ares.dir/ares__addrinfo2hostent.c.o
    cc1: warning: zeek/prod-build/libkqueue-build/include: No such file or directory [-Wmissing-include-dirs]

My take is that FindKqueue extends the include directories globally and
tickles this warning because c-ares is built first. Grepping around,
<sys/event.h> is only included in iosource/Manager.cc, so we should
be able to reduce the exposure just to the iosource subdir.
2023-12-06 16:00:00 +01:00

15 lines
262 B
CMake

zeek_add_subdir_library(
iosource
INCLUDE_DIRS
${LIBKQUEUE_INCLUDE_DIRS}
DEPENDENCIES
${LIBKQUEUE_LIBRARIES}
SOURCES
BPF_Program.cc
Component.cc
Manager.cc
Packet.cc
PktDumper.cc
PktSrc.cc)
add_subdirectory(pcap)