aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2015-04-24 10:58:03 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2015-06-05 15:54:39 +0200
commitb843911de145cbe54ffe0c7cedc031aab52f4b09 (patch)
tree56d98063df90933496e0b88571aaad2b6d1ed0b8
parentaac38195de110dec967bd9ce2ff080821656f756 (diff)
downloadlibssh-b843911de145cbe54ffe0c7cedc031aab52f4b09.tar.gz
libssh-b843911de145cbe54ffe0c7cedc031aab52f4b09.tar.xz
libssh-b843911de145cbe54ffe0c7cedc031aab52f4b09.zip
cmake: add WITH_PACKET_DEBUG option
-rw-r--r--ConfigureChecks.cmake4
-rw-r--r--DefineOptions.cmake1
-rw-r--r--config.h.cmake3
3 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index a32e0988..0410c758 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -243,6 +243,10 @@ if (WITH_DEBUG_CRYPTO)
set(DEBUG_CRYPTO 1)
endif (WITH_DEBUG_CRYPTO)
+if (WITH_DEBUG_PACKET)
+ set(DEBUG_PACKET 1)
+endif (WITH_DEBUG_PACKET)
+
if (WITH_DEBUG_CALLTRACE)
set(DEBUG_CALLTRACE 1)
endif (WITH_DEBUG_CALLTRACE)
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index ab7819a5..43abde4e 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -5,6 +5,7 @@ option(WITH_SFTP "Build with SFTP support" ON)
option(WITH_SERVER "Build with SSH server support" ON)
option(WITH_STATIC_LIB "Build with a static library" OFF)
option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF)
+option(WITH_DEBUG_PACKET "Build with packet debug output" OFF)
option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON)
option(WITH_GCRYPT "Compile against libgcrypt" OFF)
option(WITH_PCAP "Compile with Pcap generation support" ON)
diff --git a/config.h.cmake b/config.h.cmake
index e5c5fdc7..aac088be 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -173,6 +173,9 @@
/* Define to 1 if you want to enable debug output for crypto functions */
#cmakedefine DEBUG_CRYPTO 1
+/* Define to 1 if you want to enable debug output for packet functions */
+#cmakedefine DEBUG_PACKET 1
+
/* Define to 1 if you want to enable pcap output support (experimental) */
#cmakedefine WITH_PCAP 1