aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rw-r--r--CMakeOptions.txt1
2 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 09100d7fd1..771add6ac7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -227,7 +227,7 @@ endif()
# - set HAVE_XXX
#The minimum package list
-set(PACKAGELIST GLIB2 GMODULE2 PCAP M LEX YACC Perl SH PythonInterp)
+set(PACKAGELIST GLIB2 GMODULE2 M LEX YACC Perl SH PythonInterp)
set(GLIB2_FIND_REQUIRED)
set(GLIB2_MIN_VERSION 2.14.0)
set(PCAP_REQUIRED)
@@ -235,6 +235,10 @@ set(M_REQUIRED)
set(PACKAGELIST ${PACKAGELIST} HtmlViewer)
+if(ENABLE_PCAP)
+ set(PACKAGELIST ${PACKAGELIST} PCAP)
+endif()
+
#Build the gui ?
if(BUILD_wireshark)
if(ENABLE_GTK3)
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index 57e915d400..52a1efa122 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -19,6 +19,7 @@ option(DISABLE_WERROR "Do not treat Warnings as errors" OFF)
option(ENABLE_EXTRA_GCC_CHECKS "Do additional -W checks in GCC (disables -Werror)" OFF)
option(ENABLE_GTK3 "Use GTK3 instead of GTK2 (does not compile yet)" OFF)
option(ENABLE_UI_MANAGER "Build GTK UI with the new UI-Manager API" ON)
+option(ENABLE_PCAP "Enable libpcap support (required for capturing)" ON)
#
# Do not make this the default on UN*X; AirPcap support is available
# only on Windows. It might be nice to have it, on Windows, check