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.
This commit is contained in:
Arne Welzel 2023-12-06 15:53:19 +01:00
parent d1e7c8b81c
commit 4e20a484ea

View file

@ -1,5 +1,9 @@
zeek_add_subdir_library( zeek_add_subdir_library(
iosource iosource
INCLUDE_DIRS
${LIBKQUEUE_INCLUDE_DIRS}
DEPENDENCIES
${LIBKQUEUE_LIBRARIES}
SOURCES SOURCES
BPF_Program.cc BPF_Program.cc
Component.cc Component.cc