diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-24 22:50:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-24 22:50:30 +0000 |
commit | f036ba32ab583ce58a03457766844b49e2b30309 (patch) | |
tree | d2286ff2a5916cc6ccb936899112f8bf75cba559 /cmake/modules | |
parent | ca2a2b6298a1a051bd3c3a541390503fcc117cbe (diff) |
At least according to the CMake 2.6 documentation,
CHECK_VARIABLE_EXISTS() can be used to check for C variables; use that
to check for pcap_version.
svn path=/trunk/; revision=32938
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindPCAP.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/FindPCAP.cmake b/cmake/modules/FindPCAP.cmake index 4a59f05511..0f5a19a439 100644 --- a/cmake/modules/FindPCAP.cmake +++ b/cmake/modules/FindPCAP.cmake @@ -100,6 +100,7 @@ ENDIF(PCAP_LIBRARIES) INCLUDE(CheckFunctionExists) SET(CMAKE_REQUIRED_INCLUDES ${PCAP_INCLUDE_DIRS}) SET(CMAKE_REQUIRED_LIBRARIES ${PCAP_LIBRARIES}) +CHECK_VARIABLE_EXISTS("pcap_version" HAVE_PCAP_VERSION) CHECK_FUNCTION_EXISTS("pcap_open_dead" HAVE_PCAP_OPEN_DEAD) CHECK_FUNCTION_EXISTS("pcap_freecode" HAVE_PCAP_FREECODE) # |