diff --git a/CMakeLists.txt b/CMakeLists.txt index 337b9609..4ca0d53f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ option(UBSAN "Enable UndefinedBehaviorSanitizer" OFF) option(TIDY "Enable clang tidy" OFF) IF (REVISION) - add_compile_definitions(REVISION=\"${REVISION}\") + # add_compile_definitions(REVISION=\"${REVISION}\") + add_definitions(-DREVISION=\"${REVISION}\") ENDIF() IF (TIDY) diff --git a/client/snapclient.cpp b/client/snapclient.cpp index fc508345..76b4a16d 100644 --- a/client/snapclient.cpp +++ b/client/snapclient.cpp @@ -421,7 +421,7 @@ int main(int argc, char** argv) io_context.stop(); }); - LOG(INFO, LOG_TAG) << "Snapclient v" << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << " started\n"; + LOG(INFO, LOG_TAG) << "Version " << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << "\n"; // Setup metadata handling auto meta(metaStderr ? std::make_unique() : std::make_unique()); diff --git a/server/snapserver.cpp b/server/snapserver.cpp index 8a25402a..17b91f84 100644 --- a/server/snapserver.cpp +++ b/server/snapserver.cpp @@ -226,7 +226,7 @@ int main(int argc, char* argv[]) else throw SnapException("Invalid log sink: " + settings.logging.sink); - LOG(INFO, LOG_TAG) << "Snapserver v" << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << " started\n"; + LOG(INFO, LOG_TAG) << "Version " << version::code << (!version::rev().empty() ? (", revision " + version::rev(8)) : ("")) << "\n"; if (!streamValue->is_set() && !sourceValue->is_set()) settings.stream.sources.push_back(sourceValue->value());