aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-10 00:40:52 +0100
committerJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-10 00:57:49 +0100
commitaf2a88cd18e51869465080ef19492896c6ec311b (patch)
treec3d193d5b72a489784d34672dd56b7ae42070b32 /CMakeOptions.txt
parent1a702e5430d2a750ed234bc3a7fdc052086f5124 (diff)
CMake: Reverse logic to handle debug code
Only enabling debug code by default with Debug build type seems overly restrictive; debug output is still conditional on the log level.
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index d58bdfd0d1..1beeb99f56 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -44,6 +44,7 @@ endif()
option(BUILD_mmdbresolve "Build MaxMind DB resolver" ON)
option(DISABLE_WERROR "Do not treat warnings as errors" OFF)
+option(DISABLE_DEBUG "Disable debug code" OFF)
option(DISABLE_ASSERT "Disable assertions" OFF)
option(DISABLE_FRAME_LARGER_THAN_WARNING "Disable warning if the size of a function frame is large" OFF)
option(EXTCAP_ANDROIDDUMP_LIBPCAP "Build androiddump using libpcap" OFF)
@@ -55,7 +56,6 @@ option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OF
option(ENABLE_FUZZER "Enable libFuzzer instrumentation for use with fuzzshark" OFF)
option(ENABLE_CHECKHF_CONFLICT "Enable hf conflict check for debugging (start-up may be slower)" OFF)
option(ENABLE_CCACHE "Speed up compiling and linking using ccache if possible" OFF)
-option(ENABLE_DEBUG "Enable debug output" OFF)
if(CMAKE_GENERATOR STREQUAL "Ninja")
option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" ON)