diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-09-25 15:37:38 -0700 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2014-09-28 18:22:48 +0000 |
commit | efea8ce1c6a4331bc2ff7090dd3dadd2a80f6d86 (patch) | |
tree | c88021f39ef9fc00cd05a7cc0afd8afb7f30cb2e /caputils/CMakeLists.txt | |
parent | 5517c428839b2682bd040209054c3584c4089b3d (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>
Diffstat (limited to 'caputils/CMakeLists.txt')
-rw-r--r-- | caputils/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 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} ) |