From d1c6fa9261963dbaf54a85f99ba9c09bfc8029bf Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 19 Nov 2009 09:33:06 +0100 Subject: [PATCH] Build the pcap source only if enabled. --- libssh/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt index 11ddcff5..62846087 100644 --- a/libssh/CMakeLists.txt +++ b/libssh/CMakeLists.txt @@ -93,7 +93,6 @@ set(libssh_SRCS misc.c options.c packet.c - pcap.c poll.c session.c scp.c @@ -102,6 +101,14 @@ set(libssh_SRCS wrapper.c ) +if (WITH_PCAP) + set(libssh_SRCS + ${libssh_SRCS} + pcap.c + ) + +endif (WITH_PCAP) + if (WITH_SFTP) set(libssh_SRCS ${libssh_SRCS}