aboutsummaryrefslogtreecommitdiffstats
path: root/capchild
diff options
context:
space:
mode:
Diffstat (limited to 'capchild')
-rw-r--r--capchild/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/capchild/CMakeLists.txt b/capchild/CMakeLists.txt
index cfea58eb99..688cdbcbc9 100644
--- a/capchild/CMakeLists.txt
+++ b/capchild/CMakeLists.txt
@@ -26,7 +26,11 @@ add_library(capchild STATIC
${CAPCHILD_SRC}
)
-target_link_libraries(capchild PRIVATE wsutil)
+target_link_libraries(capchild
+ PRIVATE
+ wsutil
+ $<$<BOOL:${PCAP_FOUND}>:pcap::pcap>
+)
set_target_properties(capchild PROPERTIES
LINK_FLAGS "${WS_LINK_FLAGS}"