[Bro-Dev] Error compiling aux/broctl
Martin Holste
mcholste at gmail.com
Thu Sep 1 10:35:15 PDT 2011
I had to add this to aux/broct/aux/capstats/CMakeLists.txt because I
have a custom pcap dir and there is no --with-PCAP=:
set(PCAP_ROOT_DIR "/usr/local/pfring")
find_path(PCAP_ROOT_DIR
NAMES include/pcap.h
)
find_path(PCAP_INCLUDE_DIR
NAMES pcap.h
HINTS ${PCAP_ROOT_DIR}/include
)
find_library(PCAP_LIBRARY
NAMES pcap
HINTS ${PCAP_ROOT_DIR}/lib
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PCAP DEFAULT_MSG
PCAP_LIBRARY
PCAP_INCLUDE_DIR
)
mark_as_advanced(
PCAP_ROOT_DIR
PCAP_INCLUDE_DIR
PCAP_LIBRARY
)
More information about the bro-dev
mailing list