build: new FLB_RELEASE mode for release with debug symbols
@@ -63,7 +63,8 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/library")
# Build Options
option(FLB_ALL "Enable all features" No)
-option(FLB_DEBUG "Build with debug symbols" No)
+option(FLB_DEBUG "Build with debug symbols" Yes)
+option(FLB_RELEASE "Build with debug symbols" No)
option(FLB_SMALL "Optimise for small size" No)
option(FLB_COVERAGE "Build with code-coverage" No)
option(FLB_JEMALLOC "Build with Jemalloc support" No)
@@ -84,7 +85,7 @@ option(FLB_MTRACE "Enable mtrace support" No)
option(FLB_POSIX_TLS "Force POSIX thread storage" No)
option(FLB_INOTIFY "Enable inotify support" Yes)
option(FLB_SQLDB "Enable SQL embedded DB" Yes)
-option(FLB_HTTP_SERVER "Enable HTTP Server" No)
+option(FLB_HTTP_SERVER "Enable HTTP Server" Yes)
option(FLB_BACKTRACE "Enable stacktrace support" Yes)
option(FLB_LUAJIT "Enable Lua Scripting support" Yes)
option(FLB_RECORD_ACCESSOR "Enable record accessor" Yes)
@@ -298,6 +299,8 @@ endif()
# Enable Debug symbols if specified
if(FLB_DEBUG)
set(CMAKE_BUILD_TYPE "Debug")
+elseif(FLB_RELEASE)
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
endif()
if(FLB_PARSER)
