diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-04-29 18:41:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-04-29 18:41:20 -0700 |
commit | f57a25811d58a7fea5b3c296e010c82f258bd336 (patch) | |
tree | 5d0da184b4586364e188e08ad226b30ecf44b764 /cmake | |
parent | 2c25216be692deaeac362fc2e50c1bd29903b217 (diff) | |
download | tcpdump-f57a25811d58a7fea5b3c296e010c82f258bd336.tar.gz |
Add a message for pcap-config, and suppress messages with QUIET.
We have messages for pkg-config and for the old-fashioned search; print
a message if pkg-config failed but we found pcap-config.
Fix the suppression of messages with a QUIET argument.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/FindPCAP.cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/Modules/FindPCAP.cmake b/cmake/Modules/FindPCAP.cmake index 855db651..35b9244f 100644 --- a/cmake/Modules/FindPCAP.cmake +++ b/cmake/Modules/FindPCAP.cmake @@ -67,7 +67,7 @@ else(WIN32) # libpcap isn't available - not all systems ship pkg-config, and # libpcap didn't have .pc files until libpcap 1.9.0. # - if(PCAP_FIND_QUIET) + if(PCAP_FIND_QUIETLY) set(_quiet "QUIET") endif() @@ -75,7 +75,7 @@ else(WIN32) # First, try pkg-config. # find_package(PkgConfig) - pkg_search_module(CONFIG_PCAP ${QUIET} libpcap) + pkg_search_module(CONFIG_PCAP ${_quiet} libpcap) if(NOT CONFIG_PCAP_FOUND) # @@ -86,6 +86,11 @@ else(WIN32) # # We have pcap-config; use it. # + if(NOT "${_quiet}" STREQUAL "QUIET") + message(STATUS "Found pcap-config") + endif() + + # # if this is macOS or some other Darwin-based OS, check whether # it's the system-supplied one. # |