Browse Source

Merge branch 'master' of https://github.com/civetweb/civetweb

bel2125 4 years ago
parent
commit
56cc39582a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      CMakeLists.txt

+ 4 - 1
CMakeLists.txt

@@ -476,8 +476,11 @@ endif()
 
 
 
 
 # Set up the definitions
 # Set up the definitions
+option(CIVETWEB_ENABLE_DEBUG_TOOLS "For Debug builds enable verbose logging and assertions" ON)
 if (${CMAKE_BUILD_TYPE} MATCHES "[Dd]ebug")
 if (${CMAKE_BUILD_TYPE} MATCHES "[Dd]ebug")
-  add_definitions(-DDEBUG)
+  if(CIVETWEB_ENABLE_DEBUG_TOOLS)
+    add_definitions(-DDEBUG)
+  endif()
   add_definitions(-O0)
   add_definitions(-O0)
   add_definitions(-g)
   add_definitions(-g)
 endif()
 endif()