summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libssh/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt
index 11ddcff..6284608 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}