mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:19:00 +08:00
d07d3f7da2
* [libpcap] update to 1.10.4 * [libpcap] update to 1.10.4 * [libpcap] update * [libpcap] update
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 650be01..7565e58 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -521,6 +521,7 @@ set(SEPTEL_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../septel" CACHE PATH "Path to dire
|
|
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.
|
|
@@ -579,7 +580,7 @@ if(WIN32)
|
|
if(IS_DIRECTORY ${CMAKE_HOME_DIRECTORY}/../../Common)
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/../../Common)
|
|
endif(IS_DIRECTORY ${CMAKE_HOME_DIRECTORY}/../../Common)
|
|
-
|
|
+ if(NOT DISABLE_PACKET)
|
|
find_package(Packet)
|
|
if(Packet_FOUND)
|
|
set(HAVE_PACKET32 TRUE)
|
|
@@ -594,6 +595,7 @@ if(WIN32)
|
|
check_function_exists(PacketGetTimestampModes HAVE_PACKET_GET_TIMESTAMP_MODES)
|
|
cmake_pop_check_state()
|
|
endif(Packet_FOUND)
|
|
+ endif()
|
|
|
|
message(STATUS "checking for Npcap's version.h")
|
|
check_symbol_exists(WINPCAP_PRODUCT_NAME "${CMAKE_SOURCE_DIR}/../../version.h" HAVE_VERSION_H)
|