From 40352d75cd187201b46c13acc0e03c0d73785e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 27 Nov 2018 19:37:33 +0000 Subject: CMake: Fix some transitive link dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libwireshark and libwiretap have their INTERFACE link dependencies changed to the required set. libwsutil keeps a default public visibility. Further work may show some unneeded link requirements. The executable dependencies are adjusted accordingly. Change-Id: I3a534f72403819cac136ae47a3d80acee76e0fb3 Reviewed-on: https://code.wireshark.org/review/30815 Reviewed-by: João Valverde --- caputils/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'caputils/CMakeLists.txt') diff --git a/caputils/CMakeLists.txt b/caputils/CMakeLists.txt index c743bbd127..a4f75d1f1d 100644 --- a/caputils/CMakeLists.txt +++ b/caputils/CMakeLists.txt @@ -47,6 +47,12 @@ add_library(caputils STATIC ${CAPUTILS_SRC} ) +target_link_libraries(caputils PUBLIC ${PCAP_LIBRARIES}) + +if(WIN32) + target_link_libraries(caputils PRIVATE "iphlpapi.lib") +endif(WIN32) + set_target_properties(caputils PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}" FOLDER "Libs") -- cgit v1.2.3