aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-09-25 15:37:38 -0700
committerStig Bjørlykke <stig@bjorlykke.org>2014-09-28 18:22:48 +0000
commitefea8ce1c6a4331bc2ff7090dd3dadd2a80f6d86 (patch)
treec88021f39ef9fc00cd05a7cc0afd8afb7f30cb2e
parent5517c428839b2682bd040209054c3584c4089b3d (diff)
CMake: Conditional build fixes and updates.
HAVE_PORTAUDIO_H didn't work for Stig. Use PORTAUDIO_FOUND instead, which is the correct name to use according to the FIND_PACKAGE_HANDLE_STANDARD_ARGS documentation. Use xxx_FOUND in a couple of other places. Conditionally build caputils/airpcap_loader.c. Change-Id: I6a134192902229a446dccf43bfb7bbfe2a55d1e2 Reviewed-on: https://code.wireshark.org/review/4291 Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
-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