From 3ab582d60bbdd5c2874756c311891fc37178065e Mon Sep 17 00:00:00 2001 From: Balder Date: Tue, 9 Aug 2016 11:03:49 +0200 Subject: [PATCH] Added bigmeta to cmakelist and ifdef flag to config.cpp --- CMakeLists.txt | 4 +++- lib/config.cpp | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06961af3..ba98f003 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,9 @@ endif() if (NOT DEFINED NOSHM ) add_definitions(-DSHM_ENABLED=1) endif() - +if (DEFINED BIGMETA ) + add_definitions(-DBIGMETA=1) +endif() ######################################## # Build Variables - Thread Names # ######################################## diff --git a/lib/config.cpp b/lib/config.cpp index 7f3990c8..304dc297 100644 --- a/lib/config.cpp +++ b/lib/config.cpp @@ -206,6 +206,9 @@ bool Util::Config::parseArgs(int & argc, char ** & argv) { #ifdef WITH_THREADNAMES std::cout << "- Flag: With threadnames. Debuggers will show sensible human-readable thread names." << std::endl; #endif + #ifdef BIGMETA + std::cout << "- Flag: Big metadata. Enabled longer live stream durations. Breaks compatibility with DTSH files generated by versions without this flag." << std::endl; + #endif std::cout << "Built on " __DATE__ ", " __TIME__ << std::endl; exit(1); break;