aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2019-05-01 16:13:28 +0100
committerJoão Valverde <j@v6e.pt>2019-05-03 21:56:45 +0000
commit4c5d2f5ccf822c07746853b065322c34dc322e8a (patch)
tree36cbd1b226a137eb38cf1e900b86e547235abd7e /extcap
parente5b4e673f0534fd26919cb7d3644b958d3020bea (diff)
CMake: Add libpcap imported library target
Change-Id: I5326b87784817fb353329e2d686fe0515c32f6cb Reviewed-on: https://code.wireshark.org/review/33038 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap/CMakeLists.txt b/extcap/CMakeLists.txt
index 398d712efe..b07b58352c 100644
--- a/extcap/CMakeLists.txt
+++ b/extcap/CMakeLists.txt
@@ -91,8 +91,8 @@ if(BUILD_androiddump)
set(androiddump_LIBS
ui
${GLIB2_LIBRARIES}
- ${PCAP_LIBRARIES}
${WIN_WS2_32_LIBRARY}
+ $<$<BOOL:${PCAP_FOUND}>:pcap::pcap>
)
else()
message(FATAL_ERROR "You are trying to build androiddump with libpcap but do not have it")