diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-11-19 09:33:06 +0100 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-11-19 09:33:06 +0100 |
commit | d1c6fa9261963dbaf54a85f99ba9c09bfc8029bf (patch) | |
tree | f019aa9c4ad9d4ce2466268ca73ecad65fdd5c95 | |
parent | b00e2ad40e775049f4691f670196a1f5fea5cb6a (diff) | |
download | libssh-d1c6fa9261963dbaf54a85f99ba9c09bfc8029bf.tar.gz libssh-d1c6fa9261963dbaf54a85f99ba9c09bfc8029bf.tar.xz libssh-d1c6fa9261963dbaf54a85f99ba9c09bfc8029bf.zip |
Build the pcap source only if enabled.
-rw-r--r-- | libssh/CMakeLists.txt | 9 |
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} |