mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
Make sure that vcpkg isn't preferred if pcap_root_dir is passed in
This commit is contained in:
parent
da7457340c
commit
eedd0fbe8c
3 changed files with 6 additions and 3 deletions
|
@ -133,7 +133,10 @@ if (MSVC)
|
|||
# Set PCAP_ROOT_DIR to point at the installation from vcpkg. A later call
|
||||
# to FindPCAP.cmake will fill in the rest of the necessary variables.
|
||||
if (NOT PCAP_ROOT_DIR)
|
||||
set(PCAP_ROOT_DIR ${VCPKG_INSTALLED_DIR}/x64-windows-static)
|
||||
set(PCAP_ROOT_DIR ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET})
|
||||
else ()
|
||||
unset(PCAP_INCLUDE_DIR CACHE)
|
||||
unset(PCAP_LIBRARY CACHE)
|
||||
endif ()
|
||||
|
||||
set(LIBPCAP_PCAP_COMPILE_NOPCAP_HAS_ERROR_PARAMETER false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue