mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-10 22:19:02 +08:00
5b2ac1fed8
* [libhsplasma/libpcap/lv2] Update to the latest version * [libpcap] Remove unused comments * Update version files * [lv2] Fix usage [libpcap] Update ci.baseline.txt * [libhsplasma] Remove x64-windows-static=fail from ci.baseline.txt * [libcrafter] Update to 1.0 * [libcrafter] Add vcpkg.json * Update version files * Add CRT check for libpcap and update version as versin-semver for libpcap * Update version files Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2f675d1..e9d6d96 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -244,6 +244,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.
|
|
@@ -302,7 +303,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)
|
|
@@ -317,7 +318,8 @@ 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)
|
|
if(HAVE_VERSION_H)
|