diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2018-11-27 19:37:33 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2018-11-29 02:21:51 +0000 |
commit | 40352d75cd187201b46c13acc0e03c0d73785e51 (patch) | |
tree | b1e3c57443c88fe782e562d8c0c066d4d9f6af63 /caputils | |
parent | 332df929a9966fda2cd3aa30a5a107e5b2bfa360 (diff) |
CMake: Fix some transitive link dependencies
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 <j@v6e.pt>
Diffstat (limited to 'caputils')
-rw-r--r-- | caputils/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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") |