aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
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 /wsutil
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 'wsutil')
-rw-r--r--wsutil/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt
index f2a90a341f..17c6949133 100644
--- a/wsutil/CMakeLists.txt
+++ b/wsutil/CMakeLists.txt
@@ -267,10 +267,10 @@ target_link_libraries(wsutil
${APPLE_CORE_FOUNDATION_LIBRARY}
${GMODULE2_LIBRARIES}
${GLIB2_LIBRARIES}
- ${PCAP_LIBRARIES}
${GCRYPT_LIBRARIES}
${WIN_WS2_32_LIBRARY}
${GNUTLS_LIBRARIES}
+ $<$<BOOL:${PCAP_FOUND}>:pcap::pcap>
)
if(WIN32)
@@ -279,7 +279,6 @@ endif(WIN32)
target_include_directories(wsutil SYSTEM
PUBLIC
- ${PCAP_INCLUDE_DIRS}
${GCRYPT_INCLUDE_DIRS}
${GNUTLS_INCLUDE_DIRS}
)