Skip to content

Commit 68f4a97

Browse files
authored
include libpcap when checking for pcap symbol (#1313)
Signed-off-by: Glen Gibb <[email protected]>
1 parent 91bc4dc commit 68f4a97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/BMI/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Check for pcap_set_immediate_mode
2-
set(CMAKE_REQUIRED_LIBRARIES "pcap")
32
include(CheckSymbolExists)
3+
4+
set(_OLD_CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES}")
5+
set(CMAKE_REQUIRED_LIBRARIES "pcap")
6+
47
check_symbol_exists(pcap_set_immediate_mode "pcap.h" HAVE_PCAP_SET_IMMEDIATE_MODE)
58

9+
set(CMAKE_REQUIRED_LIBRARIES "${_OLD_CMAKE_REQUIRED_LIBRARIES}")
10+
611
# Create bmi library
712
add_library(bmi OBJECT
813
bmi_interface.c

0 commit comments

Comments
 (0)