减少依赖影响范围 (#4039)

See #4034
This commit is contained in:
Xiaofeng Wang
2024-11-25 11:22:29 +08:00
committed by GitHub
parent 326b475beb
commit 06ff8461c7
2 changed files with 7 additions and 9 deletions

View File

@@ -463,15 +463,6 @@ if(ENABLE_VIDEOSTACK)
endif ()
endif ()
if(NOT PCAP_FOUND AND ENABLE_TESTS)
find_package(PCAP QUIET)
if(PCAP_FOUND)
include_directories(SYSTEM ${PCAP_INCLUDE_DIRS})
list(APPEND LINK_LIBRARIES ${PCAP_LIBRARIES})
message(STATUS "found library: ${PCAP_LIBRARIES}")
endif()
endif()
# ----------------------------------------------------------------------------
# Solution folders:
# ----------------------------------------------------------------------------