From 9ba97d12d6b1b2e6e06311375c07ce975fc08205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sat, 27 Feb 2021 03:38:15 +0000 Subject: Add ws_debug() and use it Replace most instances of ws_debug_printf() except in epan/dissectors and dissector plugins. Some replacements use printf(), some use ws_debug(), and some were removed because they were dead or judged to be temporary. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ed890da42..1277664389 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -823,6 +823,13 @@ else() # ! MSVC elseif(DISABLE_ASSERT) add_definitions(-DWS_DISABLE_ASSERT) endif() + if(ENABLE_DEBUG) + add_definitions(-DWS_DEBUG) + elseif(CMAKE_VERSION VERSION_GREATER "3.11.99") + add_compile_definitions( + $<$:WS_DEBUG> + ) + endif() set(WIRESHARK_LD_FLAGS # See also CheckCLinkerFlag.cmake -- cgit v1.2.3