[cmake] use DEFAULT_DEBUG_OPTION for all

This commit is contained in:
akallabeth
2024-02-13 16:52:51 +01:00
committed by akallabeth
parent 83b8acf897
commit e2e6d09256
5 changed files with 12 additions and 8 deletions

View File

@@ -86,9 +86,9 @@ option(WITH_DEBUG_ALL "Print all debug messages." OFF)
if(WITH_DEBUG_ALL)
message(WARNING "WITH_DEBUG_ALL=ON, the build will be slow and might leak sensitive information, do not use with release builds!")
set(DEFAULT_DEBUG_OPTION "ON")
set(DEFAULT_DEBUG_OPTION ON CACHE INTERNAL "debug default")
else()
set(DEFAULT_DEBUG_OPTION "OFF")
set(DEFAULT_DEBUG_OPTION OFF CACHE INTERNAL "debug default")
endif()
option(WITH_DEBUG_CERTIFICATE "Print certificate related debug messages." ${DEFAULT_DEBUG_OPTION})