aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--caputils/CMakeLists.txt8
-rw-r--r--ui/gtk/CMakeLists.txt6
2 files changed, 10 insertions, 4 deletions
diff --git a/caputils/CMakeLists.txt b/caputils/CMakeLists.txt
index 0d9364f2ad..a3a308ba0f 100644
--- a/caputils/CMakeLists.txt
+++ b/caputils/CMakeLists.txt
@@ -36,12 +36,18 @@ endif()
set(CAPUTILS_SRC
${PLATFORM_CAPUTILS_SRC}
- airpcap_loader.c
capture-pcap-util.c
iface_monitor.c
ws80211_utils.c
)
+if (AIRPCAP_FOUND)
+ set(CAPUTILS_SRC
+ ${CAPUTILS_SRC}
+ airpcap_loader.c
+ )
+endif()
+
set(CLEAN_FILES
${CAPUTILS_SRC}
)
diff --git a/ui/gtk/CMakeLists.txt b/ui/gtk/CMakeLists.txt
index e27b2da684..92acf2de09 100644
--- a/ui/gtk/CMakeLists.txt
+++ b/ui/gtk/CMakeLists.txt
@@ -117,7 +117,7 @@ set(WIRESHARK_GTK_SRC
${WIRESHARK_CUSTOM_GTK_SRC}
)
-if (HAVE_AIRPCAP)
+if (AIRPCAP_FOUND)
set(WIRESHARK_GTK_SRC
${WIRESHARK_GTK_SRC}
airpcap_dlg.c
@@ -126,14 +126,14 @@ if (HAVE_AIRPCAP)
)
endif()
-if(HAVE_PORTAUDIO_H)
+if(PORTAUDIO_FOUND)
set(WIRESHARK_GTK_SRC
${WIRESHARK_GTK_SRC}
rtp_player.c
)
endif()
-if(HAVE_EXTCAP)
+if(ENABLE_EXTCAP)
set(WIRESHARK_GTK_SRC
${WIRESHARK_GTK_SRC}
extcap_gtk.c