summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-04-26 13:15:39 -0700
committerGuy Harris <guy@alum.mit.edu>2019-04-26 13:15:39 -0700
commit45a4d4292cf103bf13165441663c5800da1f01fa (patch)
tree1b09f8dc119d74379e1154619cd6d41a8489cef4 /print-ldp.c
parent7f260fa85e82f3921c1ef45d805f35360f124eec (diff)
downloadtcpdump-45a4d4292cf103bf13165441663c5800da1f01fa.tar.gz
Use pkg-config if we can. Clean up some CMake stuff.
If we have pkg-config, *and* it has .pc files for libpcap, use it to get the C compiler flags and linker flags for libpcap. find_library() sets a cache variable; when we're looping over libraries, trying to find their full paths, we really want the variable to act as a local variable, as we're looking up different libraries, so unset it after we're finished processing a particular library. When we're searching for static libraries, save the current value of CMAKE_FIND_LIBRARY_SUFFIXES, set it to ".a", and then restore it when we're done. Don't use cmake_push_check_state() for that, as CMAKE_FIND_LIBRARY_SUFFIXES is *not* one of the variables that it's guaranteed to save and restore.
Diffstat (limited to 'print-ldp.c')
0 files changed, 0 insertions, 0 deletions