summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-27 11:42:08 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-27 11:42:08 -0800
commit88007d634c7c23928ab2f788aa65c6cca8bcbecc (patch)
tree2b978f8bdb01ad3edf3c496d6ea0b71f622cf8b4 /CMakeLists.txt
parent757ffb7ab9ac132bb59a0d1031354de814b76e05 (diff)
downloadtcpdump-88007d634c7c23928ab2f788aa65c6cca8bcbecc.tar.gz
Shuffle include(CheckLibraryExists) up with the other includes.
We'll be using it later; might as well include it there.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1940691c..0386df76 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,6 +125,7 @@ include(CMakePushCheckState)
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckFunctionExists)
+include(CheckLibraryExists)
include(CheckSymbolExists)
include(CheckStructHasMember)
include(CheckVariableExists)
@@ -291,7 +292,6 @@ check_function_exists(strsep HAVE_STRSEP)
# that's been set, it skips the test, so we need different variables.
#
set(TCPDUMP_LINK_LIBRARIES "")
-include(CheckLibraryExists)
check_function_exists(gethostbyaddr STDLIBS_HAVE_GETHOSTBYADDR)
if(NOT STDLIBS_HAVE_GETHOSTBYADDR)
check_library_exists(xnet gethostbyaddr "" LIBXNET_HAS_GETHOSTBYADDR)
@@ -393,8 +393,6 @@ check_struct_has_member("struct sockaddr" sa_len sys/socket.h HAVE_SOCKADDR_SA_L
# External dependencies
######################################
-include(CheckLibraryExists)
-
#
# libpcap/WinPcap.
# First, find it.