aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-24 22:50:30 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-24 22:50:30 +0000
commitf036ba32ab583ce58a03457766844b49e2b30309 (patch)
treed2286ff2a5916cc6ccb936899112f8bf75cba559 /cmake
parentca2a2b6298a1a051bd3c3a541390503fcc117cbe (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')
-rw-r--r--cmake/modules/FindPCAP.cmake1
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)
#