diff options
author | João Valverde <j@v6e.pt> | 2021-12-30 01:05:57 +0000 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-01-03 15:55:06 +0000 |
commit | 119473eab355e5d029e7ad7830373ac69b507adf (patch) | |
tree | 95925e84253166d374621a830ca57b789d336e56 /CMakeOptions.txt | |
parent | 60dd63892a925e2f0648a20b1fbf4c876b5cf03e (diff) |
CMake: Use more consistent naming for options
Having some options use DISABLE_ and others ENABLE_ is inconsistent
and difficult to remember. Use ENABLE_ instead consistently.
Frame-larger-than remains an exception.
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r-- | CMakeOptions.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt index 98c48406af..0310cf9fd5 100644 --- a/CMakeOptions.txt +++ b/CMakeOptions.txt @@ -48,9 +48,10 @@ else() 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(ENABLE_WERROR "Treat warnings as errors" ON) +option(ENABLE_DEBUG "Enable debug code" ON) +option(ENABLE_ASSERT "Enable assertions" ON) +option(ENABLE_CCACHE "Speed up compiling and linking using ccache if possible" 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) option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF) @@ -60,7 +61,6 @@ option(ENABLE_TSAN "Enable ThreadSanitizer (TSan) for debugging" OFF) option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF) 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) if(CMAKE_GENERATOR STREQUAL "Ninja") option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" ON) |