From 4e20a484eaec89fa4637cc187503d13de4718deb Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Wed, 6 Dec 2023 15:53:19 +0100 Subject: [PATCH] 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, is only included in iosource/Manager.cc, so we should be able to reduce the exposure just to the iosource subdir. --- src/iosource/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/iosource/CMakeLists.txt b/src/iosource/CMakeLists.txt index 63881464a5..aef7ca8752 100644 --- a/src/iosource/CMakeLists.txt +++ b/src/iosource/CMakeLists.txt @@ -1,5 +1,9 @@ zeek_add_subdir_library( iosource + INCLUDE_DIRS + ${LIBKQUEUE_INCLUDE_DIRS} + DEPENDENCIES + ${LIBKQUEUE_LIBRARIES} SOURCES BPF_Program.cc Component.cc