2020-06-12 14:13:23 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-10-21 00:55:00 +08:00
|
|
|
index 650be01..7565e58 100644
|
2020-06-12 14:13:23 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-10-21 00:55:00 +08:00
|
|
|
@@ -521,6 +521,7 @@ set(SEPTEL_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../septel" CACHE PATH "Path to dire
|
2020-06-12 14:13:23 +08:00
|
|
|
option(DISABLE_SNF "Disable Myricom SNF support" OFF)
|
|
|
|
|
|
|
|
option(DISABLE_TC "Disable Riverbed TurboCap support" OFF)
|
|
|
|
+option(DISABLE_PACKET "Disable Packet support" OFF)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Debugging options.
|
2023-10-21 00:55:00 +08:00
|
|
|
@@ -579,7 +580,7 @@ if(WIN32)
|
2021-09-08 22:45:37 +08:00
|
|
|
if(IS_DIRECTORY ${CMAKE_HOME_DIRECTORY}/../../Common)
|
2020-06-12 14:13:23 +08:00
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/../../Common)
|
|
|
|
endif(IS_DIRECTORY ${CMAKE_HOME_DIRECTORY}/../../Common)
|
2021-09-08 22:45:37 +08:00
|
|
|
-
|
2020-06-12 14:13:23 +08:00
|
|
|
+ if(NOT DISABLE_PACKET)
|
2021-09-08 22:45:37 +08:00
|
|
|
find_package(Packet)
|
2023-10-21 00:55:00 +08:00
|
|
|
if(Packet_FOUND)
|
2021-09-08 22:45:37 +08:00
|
|
|
set(HAVE_PACKET32 TRUE)
|
2023-10-21 00:55:00 +08:00
|
|
|
@@ -594,6 +595,7 @@ if(WIN32)
|
2021-09-08 22:45:37 +08:00
|
|
|
check_function_exists(PacketGetTimestampModes HAVE_PACKET_GET_TIMESTAMP_MODES)
|
|
|
|
cmake_pop_check_state()
|
2023-10-21 00:55:00 +08:00
|
|
|
endif(Packet_FOUND)
|
2020-06-12 14:13:23 +08:00
|
|
|
+ endif()
|
2023-10-21 00:55:00 +08:00
|
|
|
|
2020-06-12 14:13:23 +08:00
|
|
|
message(STATUS "checking for Npcap's version.h")
|
2021-09-08 22:45:37 +08:00
|
|
|
check_symbol_exists(WINPCAP_PRODUCT_NAME "${CMAKE_SOURCE_DIR}/../../version.h" HAVE_VERSION_H)
|